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.
master
Dustin C. Hatch 2014-12-03 20:35:42 -06:00
parent 5fa572cb72
commit 71ca5624cb
1 changed files with 1 additions and 1 deletions

View File

@ -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'