#!/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