Skip to content

Instantly share code, notes, and snippets.

View erkin-personal's full-sized avatar

h erkin atak erkin-personal

View GitHub Profile
@erkin-personal
erkin-personal / create-cluster.sh
Created December 9, 2023 19:56 — forked from vitorreus/create-cluster.sh
High Availability Redis cluster using Sentinel deployed in Docker Swarm
#!/bin/bash
#This script creates 1 master, 2 slaves and 3 sentinels services in docker swarm.
docker network create \
--driver overlay \
testes_network
SWARM_MASTER=192.168.205.125
#Master
#!/bin/sh
#
# This script is used on a QNAP TS-269 PRO. https://www.en0ch.se/qnap-and-rsync/
#
# You have to change:
# 1. $SHAREUSR
# 2. $EXCLUDES (if you want o change the name of the file servername.excludes)
# 3. $SOURCE & $DESTINATION
# 4. [email protected] for the mysqldump
# 5. --password=SUPERSECRET