added argmuent parsing for rsync options, added default global options and profile-specific options, updated Master.conf

This commit is contained in:
2026-03-25 00:17:15 +00:00
parent e51c05e4e2
commit 4221b8a390
3 changed files with 60 additions and 50 deletions
+11
View File
@@ -41,6 +41,8 @@ DELAYED_CONTAINERS=("")
CONTAINER_DELAY=5
# Not include logs during transfer
EXCLUDE_DIRS=("")
# Default global rsync options
DEFAULT_RSYNC_OPTS=(-av --info=progress2 --human-readable --bwlimit="$BW_LIMIT" --delete --inplace --no-whole-file)
#-------------------- unRAID essentail scripts ------------------
# unRAID reboot script user warning time (seconds)
@@ -56,6 +58,15 @@ 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
# For example, look up at global rsync options above
declare -A PROFILE_RSYNC_OPTS=(
[arrs_stack]="-av --info=progress2 --human-readable --bwlimit=$BW_LIMIT --delete --inplace --no-whole-file"
[critical-data]="-av --human-readable --bwlimit=$BW_LIMIT --delete"
[gmer4lfe]="-av --info=progress2 --bwlimit=$BW_LIMIT"
[important-data]="-av --human-readable --bwlimit=$BW_LIMIT"
[emby]="-av --human-readable --bwlimit=$BW_LIMIT"
)
# Max rsync processes per profile
declare -A PROFILE_MAX_PROCS=(
[arrs_stack]=2