Skip to content

Commit

Permalink
Drop '-X' rsync option from system backup
Browse files Browse the repository at this point in the history
NFS mounts are not compatible with extended attributes. Ignoring them
improves script support for NFS.
  • Loading branch information
pedroetb committed Nov 29, 2018
1 parent 225d662 commit 6374081
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ Log files per backup operation will be stored at `<dst>/log`.

* Used only for system backup:
* `-A`: preserve ACLs (implies -p).
* `-X`: preserve extended attributes.

* Used only for log sending:
* `-r`: recurse into directories.
Expand Down
2 changes: 1 addition & 1 deletion rsync-incremental-backup-system
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ touch "${rotationLockFilePath}"
writeToLog "[$(${dateCmd} -Is)] Backup begins\\n"

# Do the backup (with mandatory exclusions)
if rsync -aAXhv --progress --timeout="${timeout}" --delete -W --link-dest="${bak1}/" \
if rsync -aAhv --progress --timeout="${timeout}" --delete -W --link-dest="${bak1}/" \
--log-file="${logFile}" --exclude="${ownFolderPath}" --exclude-from="${exclusionFilePath}" \
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} \
"${src}/" "${bak0}/"
Expand Down

0 comments on commit 6374081

Please sign in to comment.