diff --git a/target-helper.conf.example b/target-helper.conf.example index 5e65b92..d9dd28b 100644 --- a/target-helper.conf.example +++ b/target-helper.conf.example @@ -1,10 +1,10 @@ #!/usr/bin/env bash ###### osync - Rsync based two way sync engine with fault tolerance -###### (C) 2013-2018 by Orsiris de Jong (www.netpower.fr) -###### v1.3x target helper config file rev 2018100101 +###### (C) 2013-2019 by Orsiris de Jong (www.netpower.fr) -## ---------- GENERAL OPTIONS +[GENERAL] +CONFIG_FILE_REVISION=1.3.0 ## Sync job identification INSTANCE_ID="target_test" @@ -30,18 +30,18 @@ _REMOTE_TOKEN=SomeAlphaNumericToken9 LOGFILE="" ## If enabled, synchronization on remote system will be processed as superuser. See documentation for /etc/sudoers file configuration. -SUDO_EXEC=no +SUDO_EXEC=false ## ---------- REMOTE SYNC OPTIONS ## ssh compression should be used unless your remote connection is good enough (LAN) -SSH_COMPRESSION=yes +SSH_COMPRESSION=true ## Ignore ssh known hosts. DANGER WILL ROBINSON DANGER ! This can lead to security issues. Only enable this if you know what you're doing. -SSH_IGNORE_KNOWN_HOSTS=no +SSH_IGNORE_KNOWN_HOSTS=false ## Check for connectivity to remote host before launching remote sync task. Be sure the hosts responds to ping. Failing to ping will stop sync. -REMOTE_HOST_PING=no +REMOTE_HOST_PING=false ## Check for internet access by pinging one or more 3rd party hosts before remote sync task. Leave empty if you don't want this check to be be performed. Failing to ping will stop sync. ## If you use this function, you should set more than one 3rd party host, and be sure you can ping them. @@ -58,7 +58,7 @@ MIN_WAIT=60 ## Use 0 to wait indefinitely. MAX_WAIT=7200 -## ---------- ALERT OPTIONS +[ALERT_OPTIONS] ## List of alert mails separated by spaces ## Most Unix systems (including Win10 bash) have mail support out of the box @@ -82,7 +82,7 @@ SMTP_ENCRYPTION=none SMTP_USER= SMTP_PASSWORD= -## ---------- EXECUTION HOOKS +[EXECUTION_HOOKS] ## Commands can will be run before and / or after sync process (remote execution will only happen if REMOTE_OPERATION is set). LOCAL_RUN_BEFORE_CMD="" @@ -96,7 +96,7 @@ MAX_EXEC_TIME_PER_CMD_BEFORE=0 MAX_EXEC_TIME_PER_CMD_AFTER=0 ## Stops osync execution if one of the above commands fail -STOP_ON_CMD_ERROR=yes +STOP_ON_CMD_ERROR=true ## Run local and remote after sync commands even on failure -RUN_AFTER_CMD_ON_ERROR=no +RUN_AFTER_CMD_ON_ERROR=false