From 6374081062b028aaf9d04caabfa74f50625ba311 Mon Sep 17 00:00:00 2001 From: Pedro Trujillo Date: Thu, 29 Nov 2018 19:21:15 +0000 Subject: [PATCH] Drop '-X' rsync option from system backup NFS mounts are not compatible with extended attributes. Ignoring them improves script support for NFS. --- README.md | 1 - rsync-incremental-backup-system | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 36a1d71..a4b1e30 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,6 @@ Log files per backup operation will be stored at `/log`. * Used only for system backup: * `-A`: preserve ACLs (implies -p). - * `-X`: preserve extended attributes. * Used only for log sending: * `-r`: recurse into directories. diff --git a/rsync-incremental-backup-system b/rsync-incremental-backup-system index e58076c..5883788 100755 --- a/rsync-incremental-backup-system +++ b/rsync-incremental-backup-system @@ -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}/"