Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Back up a server in real-time
Date: Sun, 16 Nov 2008 11:51:58
Message-Id: 200811161151.51284.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Back up a server in real-time by Alan McKinnon
1 On Sunday 16 November 2008, Alan McKinnon wrote:
2 > On Sunday 16 November 2008 02:08:42 Mick wrote:
3 > > On Saturday 15 November 2008, Dale wrote:
4 > > > Mick wrote:
5 > > > > Without gentoo-wiki my knowledge level is rather poor (just like my
6 > > > > memory!)
7 > > > >
8 > > > > What would you use to back up a running server without taking it off
9 > > > > line?
10 > > >
11 > > > I keep mine simple, cp -auv paths/you/want/to/backup back/up/to It has
12 > > > works so far. Thought about doing a cron job but that complicates
13 > > > things. :/
14 > >
15 > > Thank you all for the suggestions and for the link to the wiki! I've got
16 > > some reading to do. ;-)
17 > >
18 > > Whenever I have used tar to back up a whole OS I used it with a LiveCD.
19 > > This was to make sure that files and their metadata were not being
20 > > changed while I was tar'ing them.
21 > >
22 > > Are you saying that I can actually fire up tar/rsync and back up in real
23 > > time?
24 >
25 > Yes. Unix does some RealSmartThings(tm) when using files. The name is just
26 > a pointer to the actual file, represented by an inode. Once you have an
27 > inode open, it stays open until everything using it closes it. So you can
28 > add/delete/copy/move files by name with impunity as you then just move
29 > names around. Contrast this with other inferior systems, like say Windows
30 > for example, which has a built-in self-destruct button when you try this...
31
32 Sure, but isn't there a problem with atime mtime metadata when you carry out a
33 backup in real time and then restore from it?
34
35 > > I was gravitating towards using LVM snapshot and then tar'ing that to an
36 > > external USB drive.
37 >
38 > This is the preferred way, as you get a consistent snapshot frozen at a
39 > point in time. This deals nicely with inconsistencies caused by files
40 > changing while you are backing up other ones.
41
42 Right, that's what I was thinking too. What does restoring from a backed up
43 snapshot involve?
44 --
45 Regards,
46 Mick

Attachments

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

Replies

Subject Author
Re: [gentoo-user] Back up a server in real-time Alan McKinnon <alan.mckinnon@×××××.com>