Enhanced log. fixed some general inconsistencies
This commit is contained in:
+25
-11
@@ -16,13 +16,15 @@
|
||||
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"
|
||||
GITEA_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"
|
||||
GITEA_SSH_KEY="/root/.ssh/id_gitea_rsync"
|
||||
SSH_PORT=221
|
||||
|
||||
# -------------------Rsync Script Defaults-----------------------
|
||||
# Network speed limit (KB/s)
|
||||
# These are the fallback values used when no matching profile is found.
|
||||
# Any share whose directory basename does not match a profile key below
|
||||
# will use these globals for all rsync behaviour.
|
||||
BW_LIMIT=12500
|
||||
# Retry logic
|
||||
RETRY_COUNT=3
|
||||
@@ -34,14 +36,15 @@
|
||||
DELAYED_CONTAINERS=()
|
||||
# Delay in seconds between starting containers, useful for things like Authelia
|
||||
CONTAINER_DELAY=5
|
||||
# Not include logs during transfer
|
||||
# Directories to exclude during transfer
|
||||
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
|
||||
# Add or remove paths here to manage what gets synced.
|
||||
# These shares have no profile entry and fall through to DEFAULT_RSYNC_OPTS above.
|
||||
DAILY_SYNC_SHARES=(
|
||||
/mnt/user/Anime_Movies-Old
|
||||
/mnt/user/Anime_Shows-Old
|
||||
@@ -55,7 +58,6 @@ DAILY_SYNC_SHARES=(
|
||||
/mnt/user/Nextcloud
|
||||
/mnt/user/stand-up_comedy
|
||||
/mnt/user/Tv_Shows
|
||||
/mnt/user/appdata-Failover/Gmer4Lfe/
|
||||
)
|
||||
|
||||
# ------------------- unRAID essentail scripts ------------------
|
||||
@@ -71,9 +73,21 @@ DAILY_SYNC_SHARES=(
|
||||
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
|
||||
# Profiles are matched by directory basename (lowercased).
|
||||
# Example: /mnt/user/appdata-Failover/Arrs_Stack → profile key = arrs_stack
|
||||
#
|
||||
# How fallthrough works:
|
||||
# - If a key exists in a profile array, that value is used
|
||||
# - If a key is missing, the global default above is used instead
|
||||
# - Shares in DAILY_SYNC_SHARES have no profile and always use globals
|
||||
#
|
||||
# To add a new profile:
|
||||
# 1. Add a key to each array below with your chosen profile name
|
||||
# 2. Call rsync.sh with a directory whose basename matches that key
|
||||
# 3. Any array you omit will fall back to its global default
|
||||
#
|
||||
# Note: PROFILE_RSYNC_OPTS does NOT inherit from DEFAULT_RSYNC_OPTS —
|
||||
# if you define it for a profile you must list all desired options explicitly
|
||||
|
||||
# SPACE-SEPARATED STRINGS
|
||||
declare -A PROFILE_RSYNC_OPTS=(
|
||||
|
||||
Reference in New Issue
Block a user