Fix typo in variable name preventing rsync options to be loaded from config file and add (commented) example config that also works on Synology DSM

This commit is contained in:
Janek Bevendorff 2014-10-05 18:03:50 +02:00
parent 86f5ccdef3
commit 031c437f5b
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ REMOTE_USER="%h-%u"
# Additional options for rsync
RSYNC_OPTIONS="--acls --hard-links --xattrs"
#RSYNC_OPTIONS="--hard-links --xattrs"
# Global log file to use when running as root
LOG_FILE="/var/log/rs-backup.log"

View File

@ -249,7 +249,7 @@ perform_backup() {
local msg
local backup_cmd
local ssh_cmd
local rsync_opts="${RSNC_OPTIONS}"
local rsync_opts="${RSYNC_OPTIONS}"
local exit_code
local tee_device="/dev/tty"