!/bin/bash #----------------------------------------------------------------------------------------------- #------------------------------------- Rsync command ------------------------------------------- #----------------------------------------------------------------------------------------------- /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/ #----------------------------------------------------------------------------------------------- #-------------------------------------------- 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 # #----------------------------------------------------------------------------------------------- #----------------- User Variables, Please adjust in Master.cong as needed ---------------------- #----------------------------------------------------------------------------------------------- # # Does a dry run making no changes #--dry-run # # 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 #DELAYED_CONTAINERS=() # # Delay in seconds between starting containers, useful for things like Authelia #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