* On Tuesday 30 January 2007 18:14, Holger Parplies <[EMAIL PROTECTED]>
(Holger Parplies) wrote:
>seems correct, but: do your RsyncArgs include --one-file-system (or
> -x)? If not, the files you are trying to exclude might be included in
> unexpected ways (eg. /log/maillog relative to /var would not be
> excluded if seen as /var/log/maillog relative to /). I'm not exactly
> sure though, what would happen if you backed up ['/', '/usr', '/var',
> '/home'] *without* --one-file-system.
Sorry, I should have included that. Yes, that argument is there (it
was already there). The RsyncArgs setting is otherwise unchanged from
the default (in other words, we just uncommented that line).
>[explanation of the uses of trailing '/' characters in directory names]
Cool, thanks for explaining that so clearly.
>[stuff about wildcards]
Ditto. :)
>[stuff about leading '/' characters in per-share exclude patterns]
This is the one I was really hoping to get an answer on. Once again,
thanks for the complete explanation.
>[stuff about increasing ClientTimeout to avoid SIGALRM aborts]
Yeah, that seems to be the general wisdom, and probably would have
fixed it for me (I did some web searches and found that stuff and tried
it before emailing) if I hadn't already written a fatal flaw into my
per-host config file. See my next reply (to Travis Fraser). :)
Note to BackupPC "powers that be": you may want to consider taking the
substantive content out of the email that this is a reply to
(message-id <[EMAIL PROTECTED]>) and putting it
in the main documentation. Of particular use, I think, would be a
fleshed-out example of a full-blown array exclude with multiple shares
and wildcards to demonstrate all the permutations. Perhaps something
like this (note: I don't know enough about perl to know if you're
allowed to put comments inline like that, so this may or may not be a
valid config fragment):
$Conf{BackupFilesExclude} = {
'/' => [
'/dev/', ## /dev is actually safe to back up if you like, though
'/tmp/',
'mnt/', ## I have multiple directories called 'mnt' throughout the
filesystem, don't want to back up any of them
'/floppy/',
'/cdrom/',
'/proc/',
'/sys/',
'/net/',
'/media/'
],
'/var' => [
## We use leading '/' characters here so the paths are all anchored to
the top of the share
'/log/maillog',
'/lib/mysql/data/',
'/lib/mysql/mysql/',
'/log/mysql/mysql.log',
'/log/mysql/mysql-bin*',
'/spool/exim4/',
'/something' ## This will exclude 'something' regardless of whether
it's a file or directory, since there's no trailing '/'
],
};
--
John Buttery <[EMAIL PROTECTED]>
System Administrator
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/