From: Adam G. <mai...@we...> - 2008-12-12 00:09:31
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rodrigo Real wrote: > Hello Adam > > Adam Goryachev wrote: >> Step 1) Use LVM's snapshot feature to take a snapshot of your root and >> backuppc partitions. >> Step 2) dd the snapshot to the two partitions on your USB HDD >> >> You won't be able to boot from the USB directly, because as you said, >> you would need to install grub, adjust the menu.lst, etc to make it >> work. If you had a USB drive larger than 500GB, eg, a 750GB drive, then >> you could do so much more :) > > I was thinking about running a small shell script that would do this > adjustments just after the end of the copy process. This script would > mount the usb partitions e edit those files. > >> ie, setup the 3rd partition as the "active" partition, install grub to >> this partition, and configure the menu.lst file as needed. Then use the >> first two partitions the same as above. > > This is a good idea, and would simplify the process. > > Re-structuring the thoughts, maybe I could do: > > 1 - copy the /boot and root partitions just once in a while, or maybe > rsync it in a low frequency, excluding the files that should be adjusted > 2 - in a higher frequency take a snapshot of the backuppc lvm volume > to the usb drive > > This way I guess some problems would be solved: > > * I don't have to take a snapshot of a mounted and live root system, > which I guess would cause problems (as said by Tino) > * I don't have to make that script to adjust everything everytime I do > a backup > If a script can fix it properly, why not do it on the same frequancy (if you can solve problem 1) ? > The only problem I see is that I don't have disk space to make a > snapshot and after it to dd the file to the usb disk, I never used this > snapshot feature, I will see if I can redirect the file as a pipe > directly to the usb drive. > You could always reduce your FS size, to make space for the snapshots,.... depending on your pool size/etc.... Regards, Adam -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJQauqGyoxogrTyiURAuwMAKDTv2F/kjW1W2s9GHn5eTJP0cu2AACfUrhd 5h9rGH+JAUsacn0tRswiZf4= =3ztI -----END PGP SIGNATURE----- |