A. Khattri wrote: > My problem is this: flexbackup cannot be used to backup *part* of a > filesystem - for example, it makes no sense to backup /usr/portage when > making a backup of /usr.
I use flexbackup here and it does this for me, however the downside is
that it cannot do multiple storage types at once (that I could find), so
you have to create a separate configuration for each storage type. (Pass
-c filename.conf to flexbackup)
Here's some examples from my config:
$type = 'tar';
$set{'user-vericgar'} = "/home/vericgar";
$prune{'/home/vericgar'} = "attachments downloads";
$xx = 0;
$exclude_expr[$xx++] = '.*/[Cc]ache.*/.*';
$exclude_expr[$xx++] = '.*/\.xvpics/.*';
$exclude_expr[$xx++] = '.*/\.gaim/logs/.*';
$exclude_expr[$xx++] = '.*/\.gaim/icons/.*';
$exclude_expr[$xx++] = '.*/\.pornview/.*';
$exclude_expr[$xx++] = '.*/\.thumbnails/.*';
$exclude_expr[$xx++] = '.*/\.Junk.*';
One of either prune or exclude should work for you. What it does is run
a find command using those as excludes and then passes the list to
backup to tar (in this case, or whatever utility you prefer).
Note the key to $prune needs to match exactly the value of the $set for
one of the backup sets. The $exclude_expr runs against all sets.
--
Michael Stewart [EMAIL PROTECTED]
Gentoo Developer http://dev.gentoo.org/~vericgar
GnuPG Key ID 0x08614788 available on http://pgp.mit.edu
--
signature.asc
Description: OpenPGP digital signature
