Gentoo Archives: gentoo-server

From: "Michael Stewart (vericgar)" <vericgar@g.o>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Quick restores
Date: Thu, 01 Dec 2005 01:45:40
Message-Id: 438E555D.6060601@gentoo.org
In Reply to: [gentoo-server] Quick restores by "A. Khattri"
1 A. Khattri wrote:
2 > My problem is this: flexbackup cannot be used to backup *part* of a
3 > filesystem - for example, it makes no sense to backup /usr/portage when
4 > making a backup of /usr.
5
6 I use flexbackup here and it does this for me, however the downside is
7 that it cannot do multiple storage types at once (that I could find), so
8 you have to create a separate configuration for each storage type. (Pass
9 -c filename.conf to flexbackup)
10
11 Here's some examples from my config:
12
13 $type = 'tar';
14
15 $set{'user-vericgar'} = "/home/vericgar";
16 $prune{'/home/vericgar'} = "attachments downloads";
17
18 $xx = 0;
19 $exclude_expr[$xx++] = '.*/[Cc]ache.*/.*';
20 $exclude_expr[$xx++] = '.*/\.xvpics/.*';
21 $exclude_expr[$xx++] = '.*/\.gaim/logs/.*';
22 $exclude_expr[$xx++] = '.*/\.gaim/icons/.*';
23 $exclude_expr[$xx++] = '.*/\.pornview/.*';
24 $exclude_expr[$xx++] = '.*/\.thumbnails/.*';
25 $exclude_expr[$xx++] = '.*/\.Junk.*';
26
27 One of either prune or exclude should work for you. What it does is run
28 a find command using those as excludes and then passes the list to
29 backup to tar (in this case, or whatever utility you prefer).
30
31 Note the key to $prune needs to match exactly the value of the $set for
32 one of the backup sets. The $exclude_expr runs against all sets.
33
34 --
35 Michael Stewart vericgar@g.o
36 Gentoo Developer http://dev.gentoo.org/~vericgar
37
38 GnuPG Key ID 0x08614788 available on http://pgp.mit.edu
39 --

Attachments

File name MIME type
signature.asc application/pgp-signature