1 |
Randy Barlow schrieb: |
2 |
> So I was an idiot when I set up my system and didn't use LVM. Now that |
3 |
> I'm out of disk space on one of my drives and kicking myself, I want to |
4 |
> do it without doing a reinstall. If I use tar -cvjpf |
5 |
> oldSystemThatShouldStillWorkWhenUnTarred.tar.bz2 /, then setup LVM, then |
6 |
> tar all that junk back to the new system via tar -xvpf |
7 |
> oldSystemThatShouldStillWorkWhenUnTarred.tar.bz2 with / as my working |
8 |
> directory, should that do the trick (with, of course, another go at |
9 |
> grub-install)? Is the -p flag to tar enough to store ALL the necessary |
10 |
> file system information? I just want to make sure I'm not forgetting |
11 |
> anything... |
12 |
> |
13 |
> P.S. And I'll have to build LVM support into the kernel too... |
14 |
> |
15 |
> R |
16 |
|
17 |
>From time to time i backup my complete system to avoid a reinstall after |
18 |
failures. I used something like this and it worked for me (tested it |
19 |
after a hard drive crash)! |
20 |
|
21 |
tar --atime-preserve --same-owner --numeric-owner -Spvcjf back.tar.bz2 / |
22 |
|
23 |
Maybe some flags are not necessary but --same owner would be a good |
24 |
option to preserve the user and group permissions of the files too, as i |
25 |
don't know if -p already covers this. |
26 |
|
27 |
Also take care to mount all partitions you want to backup! |
28 |
|
29 |
I don't know about lvm as i did not use a logical-volume-manager this |
30 |
time and now i use lvm within evms. |
31 |
-- |
32 |
gentoo-user@g.o mailing list |