1 |
On Sunday 16 November 2008 02:08:42 Mick wrote: |
2 |
> On Saturday 15 November 2008, Dale wrote: |
3 |
> > Mick wrote: |
4 |
> > > Without gentoo-wiki my knowledge level is rather poor (just like my |
5 |
> > > memory!) |
6 |
> > > |
7 |
> > > What would you use to back up a running server without taking it off |
8 |
> > > line? |
9 |
> > |
10 |
> > I keep mine simple, cp -auv paths/you/want/to/backup back/up/to It has |
11 |
> > works so far. Thought about doing a cron job but that complicates |
12 |
> > things. :/ |
13 |
> |
14 |
> Thank you all for the suggestions and for the link to the wiki! I've got |
15 |
> some reading to do. ;-) |
16 |
> |
17 |
> Whenever I have used tar to back up a whole OS I used it with a LiveCD. |
18 |
> This was to make sure that files and their metadata were not being changed |
19 |
> while I was tar'ing them. |
20 |
> |
21 |
> Are you saying that I can actually fire up tar/rsync and back up in real |
22 |
> time? |
23 |
|
24 |
Yes. Unix does some RealSmartThings(tm) when using files. The name is just a |
25 |
pointer to the actual file, represented by an inode. Once you have an inode |
26 |
open, it stays open until everything using it closes it. So you can |
27 |
add/delete/copy/move files by name with impunity as you then just move names |
28 |
around. Contrast this with other inferior systems, like say Windows for |
29 |
example, which has a built-in self-destruct button when you try this... |
30 |
|
31 |
> I was gravitating towards using LVM snapshot and then tar'ing that to an |
32 |
> external USB drive. |
33 |
|
34 |
This is the preferred way, as you get a consistent snapshot frozen at a point |
35 |
in time. This deals nicely with inconsistencies caused by files changing |
36 |
while you are backing up other ones. |
37 |
|
38 |
-- |
39 |
alan dot mckinnon at gmail dot com |