Structure change and vissually fixing code to make it easier to read

This commit is contained in:
2026-03-26 22:35:44 +00:00
parent 84cdc6169b
commit 4ef4c1428c
14 changed files with 253 additions and 141 deletions
+25 -22
View File
@@ -1,17 +1,20 @@
!/bin/bash
#-----------------------------------------------------------------------------------------------
#------------------------------------- Rsync command -------------------------------------------
#-----------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------
# ------------------------------------ Rsync command -------------------------------------------
# ----------------------------------------------------------------------------------------------
/mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/
#-----------------------------------------------------------------------------------------------
#-------------------------------------------- Info ---------------------------------------------
#-----------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------
# ------------------------------------------- Info ---------------------------------------------
# ----------------------------------------------------------------------------------------------
#
# These global configuartions can be added as arguments at the end of the script after folder location
#
# Its better to add profile in Master.conf for perm changes
#
# Profiles in Master.conf match the last string of folder location
#
# if a match is made with a list in Master.conf then the associated profile will be used
# If no match is made it defualts to global defualts
@@ -20,15 +23,15 @@
#----------------------------- Arguments, add after rsync command ------------------------------
#-----------------------------------------------------------------------------------------------
# Does a dry run making no changes
#--dry-run
# --dry-run
#
#Force logging
#--log)
# Force logging
# --log)
#
#Force logging to be dissabled
#--no-log
# Force logging to be dissabled
# --no-log
#
#--help
# --help
#
# Example = /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/ --dry-run --no-log
#-----------------------------------------------------------------------------------------------
@@ -37,32 +40,32 @@
#
#
# Network speed limit (KB/s)
#BW_LIMIT=12500
# BW_LIMIT=12500
#
# Retry logic
#RETRY_COUNT=3
# RETRY_COUNT=3
#
# Sleep between retries (seconds)
#SLEEP=300
# SLEEP=300
#
# Max number of concurrently running rsync processes
#MAX_RSYNC_PROCS=1
# MAX_RSYNC_PROCS=1
#
# Container start/stop/restart before and after rsync
#CRITICAL_CONTAINER_NAMES=()
# CRITICAL_CONTAINER_NAMES=()
#
# Containers that need delayed before starting
#DELAYED_CONTAINERS=()
# DELAYED_CONTAINERS=()
#
# Delay in seconds between starting containers, useful for things like Authelia
#CONTAINER_DELAY=5
# CONTAINER_DELAY=5
#
#-----------------------------------------------------------------------------------------------
#---------------End Of User Variables, Please adjust in Master.cong as needed ------------------
#-----------------------------------------------------------------------------------------------
#
#Examples
#/mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/ MAX_RSYNC_PROCS=2
#/mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/ --dry-run MAX_RSYNC_PROCS=2
# Examples
# /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/ MAX_RSYNC_PROCS=2
# /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/ --dry-run MAX_RSYNC_PROCS=2
#
# Copy and paste into unRAID User Script plugin