From e1793cd288f74d4bb10c64fc8846233eb2ccf309 Mon Sep 17 00:00:00 2001 From: FailedProxy Date: Sat, 21 Mar 2026 13:29:08 +0000 Subject: [PATCH] added rsync Master_Variables --- Rsync/Rsync-Master_Variables.sh | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Rsync/Rsync-Master_Variables.sh diff --git a/Rsync/Rsync-Master_Variables.sh b/Rsync/Rsync-Master_Variables.sh new file mode 100644 index 0000000..1aaf2c3 --- /dev/null +++ b/Rsync/Rsync-Master_Variables.sh @@ -0,0 +1,34 @@ +#!/bin/bash +################################################################################################## +############################## Master Variables for Rsync scripts ################################ +################################################################################################## + +# Backup server Tailscale hostname, Use the machine name. +BACKUP_SERVER_NAME="unRAID-Jayred365" + +# Resolve Tailscale IP dynamically, This will try to get the Tailscale IPv4 address for that host +BACKUP_SERVER=$(tailscale ip -4 "$BACKUP_SERVER_NAME" 2>/dev/null || echo "127.0.0.1") + +# SSH key for unRAID-Gmer4Lfe +SSH_KEY="/root/.ssh/Gmer4Lfe-rsync-key" + +# Network speed limit 100Mbps=12500 KB/s, 200Mbps=25600 KB/s +BW_LIMIT=12500 + +# Amount of times to retry +RETRY_COUNT=3 + +# Time in seconds waiting to retry +SLEEP=300 + +# Max number of concurrently running rsync processes +MAX_RSYNC_PROCS=1 + +# Containers to stop/start on backup server +CRITICAL_CONTAINER_NAMES=() + +# Containers from CRITICAL_CONTAINER_NAMES that should have delayed startup +DELAYED_CONTAINERS=() + +# Time in seconds to delay the listed containers +CONTAINER_DELAY=5