Gentoo Archives: gentoo-server

From: Ben Munat <bent@×××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] rsnapshot problem
Date: Sat, 02 Dec 2006 08:24:50
Message-Id: 457137B2.9010309@munat.com
In Reply to: Re: [gentoo-server] rsnapshot problem by Chris Shelton
1 Thanks Chris! After thinking about it, it seems best to just delete a
2 whole day and make sure I'm fresh. Don't want to add another host, cuz
3 it's really the same host... the old one is going away. Thanks for your
4 thoughts.
5
6 b
7
8 Chris Shelton wrote:
9 > -----BEGIN PGP SIGNED MESSAGE-----
10 > Hash: SHA1
11 >
12 > Ben,
13 >
14 > On Fri, 1 Dec 2006 at 8:20am, Ben Munat wrote:
15 >
16 >> I'm running rsnapshot 1.29 on a gentoo box, backing up a remote gentoo
17 >> server. I recently moved my server to a new machine. After switching the
18 >> domain name to point at the new machine, I found that files and
19 >> directories from the old machine are still in my daily.0 backup each
20 >> morning. They are mixed with the new files and directories.
21 >
22 > I would suggest either using a different value for snapshot_root in
23 > your rsnapshot.conf, or a new backup entry with a different
24 > destination.
25 >
26 > I am doing something similar on a newly setup gentoo server, and have
27 > the snapshot for each remote system sent to a separate directory:
28 >
29 > (from rsnapshot.conf)
30 > backup root@hotdog:/home/ hotdog/ +rsync_long_args=--bwlimit=6000
31 > ...
32 > backup root@cheddar:/home/ cheddar/ +rsync_long_args=--bwlimit=6000
33 > ...
34 > backup root@batboy:/home/ batboy/ +rsync_long_args=--bwlimit=6000
35 >
36 > This results in the following directory layout:
37 >
38 > pickles portage # ls -l /snapshots/daily.0/
39 > drwxr-xr-x 12 root root 4096 Oct 14 17:08 batboy
40 > drwxr-xr-x 12 root root 4096 Oct 12 03:59 cheddar
41 > drwxr-xr-x 13 root root 4096 Oct 11 19:56 hotdog
42 > drwxr-xr-x 11 root root 4096 Oct 11 16:22 localhost
43 >
44 >> My rsync_long_args are:
45 >>
46 >> rsync_long_args --delete --numeric-ids --relative \
47 >> --delete-excluded --ignore-errors
48 >
49 > Those look fairly standard.
50 >
51 >> and I see these args in the log.
52 >>
53 >> The backup does finish with warnings, but it almost always does... it's
54 >> hard to backup a mail directory tree without something changing! But,
55 >> ignore_errors is supposed to override that and delete anyway right?
56 >>
57 >> Hoping someone can help because it looks like my old and new file
58 >> systems will remain intermingled forever at this rate... effectively
59 >> making the backup useless (or at least a major pain to restore).
60 >
61 >> I was thinking about deleting everything under the server's directory in
62 >> daily.0. That should pull everything fresh right? Sucks to have to pull
63 >> all the files again, but I'm not seeing any other way right now.
64 >
65 > I don't see any way around that either.
66 >
67 > chris
68 >
69 > -----BEGIN PGP SIGNATURE-----
70 > Version: GnuPG v1.4.5 (GNU/Linux)
71 >
72 > iD8DBQFFcKJGM5TknMKatUwRAo3gAJ9Ji6zalx0sCK15+hSk2tGeW2rOKQCgqwrJ
73 > I30Qt9FEWob9a07gveZmkU0=
74 > =VBBP
75 > -----END PGP SIGNATURE-----
76 --
77 gentoo-server@g.o mailing list