Richard's suggestion for excludes did not work for me: backuppc was not excluding my files. Dieter's suggestion for excludes is working for me. I'm getting excludes and includes and not getting a bunch of empty folders in the backup. My host config looks like this:
$Conf{BackupFilesExclude} = {
'*' =>[
'**/Thecus Audio',
'**/incremental-backup',
'**/Wordpress_Backup',
'**/NAS_Module_Source_',
'**/FM_and_Computer_Backups',
'**/USBCopy',
'**/_Module_Folder_',
'**/eSATAHDD',
'**/USBHDD',
'**/NAS_Public',
'**/Time%20Machine',
'**/_NAS_Picture',
'**/iTunes_music'
]
};
However, based on googling rsync discussions, I'm betting that it will work without the ** in front of the / For example, from the web:
A user running rsync had his entire source directory in an exclude.txt file:
rsync -Paz --exclude-from 'rsync-exclude.txt' /home/chris/ [email protected]:LinuxHome
where rsync-exclude.txt
has this
content:
/home/chris/Downloads/*
/home/chris/Downloads/
/home/chris/Downloads/*.*
The response was: