Does anyone have any working examples of using --exclude with rsync? I've tried the following syntax already:
'--exclude', '/var/tmp/',
'--exclude', '/var/tmp',
Here's the appropriate section from the per-pc
config.pl with the latest attempt at the bottom:
$Conf{RsyncArgs} = [
#
# Do not edit these!
#
'--numeric-ids',
'--perms',
'--owner',
'--group',
'--devices',
'--links',
'--times',
'--block-size=2048',
'--recursive',
#
# If you are using a patched client rsync that supports the
# --checksum-seed option (see http://backuppc.sourceforge.net),
# then uncomment this to enabled rsync checksum cachcing
#
#'--checksum-seed=32761',
#
# Add additional arguments here
#
'--one-file-system',
'--exclude', '/var/tmp',
];
- [BackupPC-users] Excluding directories with rsync Edward Janowiak