> I'd like to exclude .exe/.dll/.com/.mp3 files from being backed up with
> BackupPC. I can't for the life of me figure out the correct method for
> doing this. Reading through smbclient's documentation, I should just have
> to add -T X *.exe to the smbclient command and it'll miraculously
> work. Unfortunately, I've yet to be able to make it actually work this
> way. I keep getting an error that looks like the -T flag isn't recognized
> by smbclient.
>
> I've also tried -TX *.exe, -T 'X *.exe', -T r *.exe, -Tr *.exe, and all
> with the same result. Does anyone have any idea how to do this?
Unfortunately smbclient only allows you to either include certain files,
or exclude certain files, not both.
Moreover, smbclient only allows a single exclude to be specified. A patch
to smbclient has been developed to fix this problem and was posted on the
list some time ago.
With that patch, you chould be able to specify:
$Conf{BackupFilesExclude} = [
'*.exe',
'*.dll',
'*.mp3',
];
Unfortunately the check in smbclient is case sensitive, so you probably
need to list the lower case and upper case forms.
When smbclient is eventually replaced with FileSys::SmbClient we will
make sure the exclude/include setup is better and more uniform.
Currently Rsync provides the most flexible exclude/include setup, but
it is difficult for some users to understand it.
> Found 2,574,308,331 bytes of music.
> Found 5,826,853,624 bytes of executables.
> Found 3,601,841,113 bytes of images.
> Found 4,693,077,165 bytes of temp directories.
Disks are getting so cheap that it is hardly worth the trouble to save
15GB...
Craig
|