Hi, Steve Blackwell wrote on 2008-08-04 18:31:38 -0400 [[BackupPC-users] Problems excluding files.]: > [...] > I have the following in my <host>.pl file: > > $Conf{BackupFilesExclude} = { > 'system' => [ > '/proc', > '/sys', > '/tmp' > ], > 'backup' => [ > '/media' > ] > }; > > but the log show that it is still trying to backup /sys and /proc. > > Contents of file /media/disk/pc/steve/XferLOG.6.z, modified 2008-08-04 > 01:08:44 (Extracting only Errors) > > Running: /usr/bin/sudo /bin/tar -c -v -f - -C / --totals > --newer=2008-07-29 17:06:39 . incr backup started back to 2008-07-29 > 17:06:39 (backup #2) for directory / Xfer PIDs are now 25863,25862 > [...] > > Id there something wrong with my $Conf{BackupFilesExclude}
yes. > or do I need to add --exclude <something> to TarIncrArgs? No. You need to use the "share" name as hash key. Since you're using XferMethod tar, chances are your "share" is "/", so you'd have $Conf{BackupFilesExclude} = { '/' => [ '/proc', '/sys', '/tmp' ], '/whatever/share/you/mean/by/backup' => [ '/media' ] }; You *can* use '*' as hash key if you want the excludes to apply to every share not explicitly given an exclude list, but it seems better practise (and less error prone) to explicitly list excludes by share like you did. Regards, Holger ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/