Changed daily script to master.conf variables

This commit is contained in:
2026-04-05 06:13:05 +00:00
parent 0248fbb283
commit 1376bf3411
4 changed files with 81 additions and 115 deletions
+40 -31
View File
@@ -2,7 +2,7 @@
# ----------------------------------------------------------------------------------------------
# ---------------------------- Master Variables for unRAID scripts -----------------------------
# ----------------------------------------------------------------------------------------------
# ----------------------- Host Configuration --------------------
# List the Hostnames of both servers
HOST1="unRAID-Gmer4Lfe"
@@ -11,27 +11,23 @@
# Must have its key added to HOST1_SSH_Key same applies for HOST2
HOST1_SSH_KEY="/root/.ssh/Gmer4Lfe-rsync-key"
HOST2_SSH_KEY="/root/.ssh/Jayred365-rsync-key"
# -------------------------- Logging ----------------------------
ENABLE_LOGGING=true # false = only echo user-facing messages
# ------------------ Git, Pull & Execute Script -----------------
REPO_SSH="git@192.168.50.2:FailedProxy/Unraid_Scripts.git"
TARGET_DIR="/mnt/user/appdata/unraid_scripts"
SSH_KEY="/root/.ssh/id_gitea_rsync"
SSH_PORT=221
REPO_SSH="git@192.168.50.2:FailedProxy/Unraid_Scripts.git"
TARGET_DIR="/mnt/user/appdata/unraid_scripts"
SSH_KEY="/root/.ssh/id_gitea_rsync"
SSH_PORT=221
# -------------------Rsync Script Defaults-----------------------
# turns on or off progress info for rsync
ENABLE_PROGRESS=true
# Network speed limit (KB/s)
BW_LIMIT=12500
# Retry logic
RETRY_COUNT=3
# Sleep between retries (seconds)
SLEEP=300
# Max number of concurrently running rsync processes
MAX_RSYNC_PROCS=1
# Container start/stop/restart before and after rsync
CRITICAL_CONTAINER_NAMES=()
# Containers that need delayed before starting
@@ -42,7 +38,26 @@ SSH_PORT=221
EXCLUDE_DIRS=()
# Default global rsync options
DEFAULT_RSYNC_OPTS=(-av --info=progress2 --human-readable --bwlimit="$BW_LIMIT" --delete --inplace --no-whole-file)
# ------------------- Daily Sync Shares -------------------------
# Shares synced once daily by Orchestrators/daily_sync.sh
# Add or remove paths here to manage what gets synced
DAILY_SYNC_SHARES=(
/mnt/user/Anime_Movies-Old
/mnt/user/Anime_Shows-Old
/mnt/user/Anime_Shows
/mnt/user/Books
/mnt/user/Intros
/mnt/user/Kids_Movies
/mnt/user/Kids_Tv_Shows
/mnt/user/Movies
/mnt/user/Music_Videos
/mnt/user/Nextcloud
/mnt/user/stand-up_comedy
/mnt/user/Tv_Shows
/mnt/user/appdata-Failover/Gmer4Lfe/
)
# ------------------- unRAID essentail scripts ------------------
# unRAID reboot script user warning time (seconds)
REBOOT_SLEEP=300
@@ -54,11 +69,12 @@ SSH_PORT=221
PHP_CONF="/etc/php-fpm.d/www.conf"
# php_fpm_max_children.sh max children value
PHP_MAX_CHILDREN=250
# --------------------- Profile System -------------------------
# Profiles are inferred from the directory basename (lowercased)
# Profile-specific rsync options (override global) must list all options as they do not inherit from global
# Shares with no profile entry fall through to DEFAULT_RSYNC_OPTS above
# SPACE-SEPARATED STRINGS
declare -A PROFILE_RSYNC_OPTS=(
[arrs_stack]="-av --info=progress2 --human-readable --bwlimit=$BW_LIMIT --delete --inplace"
@@ -67,15 +83,7 @@ declare -A PROFILE_RSYNC_OPTS=(
[important-data]="-av --human-readable --bwlimit=$BW_LIMIT"
[emby]="-av --human-readable --bwlimit=$BW_LIMIT"
)
declare -A PROFILE_MAX_PROCS=(
[arrs_stack]=2
[critical-data]=2
[gmer4lfe]=1
[important-data]=2
[emby]=1
)
declare -A PROFILE_BW_LIMIT=(
[arrs_stack]=5000
[critical-data]=9500
@@ -83,7 +91,7 @@ declare -A PROFILE_BW_LIMIT=(
[important-data]=9500
[emby]=8000
)
declare -A PROFILE_RETRY_COUNT=(
[arrs_stack]=3
[critical-data]=3
@@ -91,7 +99,7 @@ declare -A PROFILE_RETRY_COUNT=(
[important-data]=3
[emby]=3
)
declare -A PROFILE_SLEEP=(
[arrs_stack]=300
[critical-data]=300
@@ -99,7 +107,7 @@ declare -A PROFILE_SLEEP=(
[important-data]=300
[emby]=300
)
# SPACE-SEPARATED STRINGS
declare -A PROFILE_CRITICAL_CONTAINER_NAMES=(
[arrs_stack]="Sonarr Lidarr Readarr Radarr Prowlarr Bazarr Pinchflat"
@@ -108,7 +116,7 @@ declare -A PROFILE_CRITICAL_CONTAINER_NAMES=(
[important-data]="Postgres-NextCloud NextCloud"
[emby]=""
)
# SPACE-SEPARATED STRINGS — containers that need a delay before starting
declare -A PROFILE_DELAYED_CONTAINERS=(
[arrs_stack]=""
@@ -117,7 +125,7 @@ declare -A PROFILE_DELAYED_CONTAINERS=(
[important-data]="NextCloud"
[emby]=""
)
declare -A PROFILE_CONTAINER_DELAY=(
[arrs_stack]=5
[critical-data]=10
@@ -125,7 +133,7 @@ declare -A PROFILE_CONTAINER_DELAY=(
[important-data]=10
[emby]=5
)
# SPACE-SEPARATED STRINGS
declare -A PROFILE_EXCLUDE_DIRS=(
[arrs_stack]="logs *.tmp"
@@ -136,4 +144,5 @@ declare -A PROFILE_EXCLUDE_DIRS=(
)
#-----------------------------------------------------------------------------------------------
#---------------------- End Of User Variables, Please adjust above as needed -------------------
#-----------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------