From 71ca5624cb24c16d489d59dd2b496447f98ddd53 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 3 Dec 2014 20:35:42 -0600 Subject: [PATCH] backup: Do not copy UNIX-specific information The `-a` switch to `rsync` causes it to copy extra information that may be incompatible with the destination if it uses a non-native filesystem (such as FAT or NTFS). Since most of this additional information is not necessary in a backup and can cause copy errors, it should be excluded by default. Instead, the `-r` flag is used to enable recursive copies, and the `-t` flag to preserve file timestamps. --- backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.py b/backup.py index b27c93e..45cc40e 100755 --- a/backup.py +++ b/backup.py @@ -15,7 +15,7 @@ class BackupError(Exception): class Backup(object): RSYNC = os.environ.get('RSYNC', 'rsync') - RSYNC_DEFAULT_ARGS = ['-aO', '--partial', '--delete'] + RSYNC_DEFAULT_ARGS = ['-rtO', '--partial', '--delete'] RSYNC_EXTRA_ARGS = shlex.split(os.environ.get('RSYNC_EXTRA_ARGS', '')) DEFAULT_CONFIG_FILENAME = 'backups.ini'