Files
Varaverk/Rsync/user_script_pluin.sh
T
2026-03-25 01:36:48 +00:00

68 lines
2.8 KiB
Bash

!/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
#-----------------------------------------------------------------------------------------------
#----------------------------- Arguments, add after rsync command ------------------------------
#-----------------------------------------------------------------------------------------------
# Does a dry run making no changes
#--dry-run
#
#Force logging
#--log)
#
#Force logging to be dissabled
#--no-log
#
#--help
#
# Example = /mnt/user/appdata/unraid_scripts/Rsync/rsync.sh /mnt/user/appdata-test/Arrs/ --dry-run --no-log
#-----------------------------------------------------------------------------------------------
#----------------- User Variables, Please adjust in Master.cong as needed ----------------------
#-----------------------------------------------------------------------------------------------
#
#
# 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
#
# Copy and paste into unRAID User Script plugin