stable
This commit is contained in:
+15
-15
@@ -12,21 +12,14 @@
|
||||
#This allows for one centralized location for all your configurations, making it easier to manage
|
||||
# and maintain your scripts. You can adjust the variables below as needed.
|
||||
#
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
#---------------End Of User Variables, Please adjust here in Master.conf as needed -------------
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
|
||||
#-------------------- Host Configuration --------------------
|
||||
# Hostnames of both servers
|
||||
# List the Hostnames of both servers
|
||||
HOST1="unRAID-Gmer4Lfe"
|
||||
HOST2="unRAID-Jayred365"
|
||||
|
||||
|
||||
# Assign SSH keys for each host pair (adjust paths as needed) HOST1 from above
|
||||
# Must have its key added to HOST1_SSH_Key same applies for HOST2
|
||||
HOST1_SSH_KEY="/root/.ssh/Gmer4Lfe-rsync-key"
|
||||
HOST2_SSH_KEY="/root/.ssh/Jayred365-rsync-key"
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
#----------------- User Variables --------------------------------------------------------------
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
|
||||
#--------------------Rsync Script Defaults-----------------------
|
||||
# Network speed limit (KB/s)
|
||||
@@ -58,9 +51,9 @@ PHP_CONF="/etc/php-fpm.d/www.conf"
|
||||
# php_fpm_max_children.sh max children value
|
||||
PHP_MAX_CHILDREN=250
|
||||
|
||||
#----------------------------------------------------------------------------------------------
|
||||
#----------------------------------- Profile System -------------------------------------------
|
||||
#----------------------------------------------------------------------------------------------
|
||||
|
||||
#----------------------- Profile System ------------------------
|
||||
|
||||
# Profiles are mainly used for rsync operations, but can be used for any variable that needs
|
||||
# to be different based on the source or destination.
|
||||
#
|
||||
@@ -122,9 +115,16 @@ PROFILE_EXCLUDE_DIRS["gmer4lfe"]="logs *.tmp"
|
||||
PROFILE_EXCLUDE_DIRS["important-data"]="logs *.tmp"
|
||||
PROFILE_EXCLUDE_DIRS["emby"]="logs *.tmp"
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
#---------------End Of User Variables, Please adjust here in Master.conf as needed -------------
|
||||
#----------------------End Of User Variables, Please adjust Above as needed --------------------
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
#
|
||||
# Next is commom runtime logic, tried to include logic in a common script but was having trouble
|
||||
# So now its at the botton of the file, but please do not adjust unless you understand the code
|
||||
# and what it does, as changes here will affect all scripts that source this master.conf file
|
||||
#
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
#--------------------Run Logic, Do not adjust unless you understand the code -------------------
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
|
||||
# Detect local hostname
|
||||
LOCAL_HOSTNAME="$(hostname)"
|
||||
if [[ "$LOCAL_HOSTNAME" == "$HOST1" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user