Move --acls option to config file since not all servers support it (e.g. Synology DSM doesn't)
This commit is contained in:
parent
0a7ba16686
commit
86f5ccdef3
|
@ -24,7 +24,7 @@ REMOTE_USER="%h-%u"
|
||||||
#SSH_OPTIONS="-C -i .ssh/id_rsa"
|
#SSH_OPTIONS="-C -i .ssh/id_rsa"
|
||||||
|
|
||||||
# Additional options for rsync
|
# Additional options for rsync
|
||||||
#RSYNC_OPTIONS=""
|
RSYNC_OPTIONS="--acls --hard-links --xattrs"
|
||||||
|
|
||||||
# Global log file to use when running as root
|
# Global log file to use when running as root
|
||||||
LOG_FILE="/var/log/rs-backup.log"
|
LOG_FILE="/var/log/rs-backup.log"
|
||||||
|
|
|
@ -288,7 +288,6 @@ perform_backup() {
|
||||||
backup_cmd="rsync \
|
backup_cmd="rsync \
|
||||||
--rsh=\"${ssh_cmd}\" \
|
--rsh=\"${ssh_cmd}\" \
|
||||||
--archive \
|
--archive \
|
||||||
--acls \
|
|
||||||
--delete \
|
--delete \
|
||||||
--delete-excluded \
|
--delete-excluded \
|
||||||
--include-from=\"${inclusion_pattern_file}\" \
|
--include-from=\"${inclusion_pattern_file}\" \
|
||||||
|
|
Loading…
Reference in New Issue