Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is completely feasible, but there are some cautions:
First, don't attempt to clone the partition that you are working from. The easy solution is to boot from liveCD and run "dd" from there.
Make sure that you store the image file somewhere that has enough space. Running from the live CD, you first have to mount the partition where you want to store the image.
If you clone just the partition, the bootloader will stay in the MBR. It will point to the partition ONLY if you restore it to the same partition number on the disk. Otherwise, you would need to change /boot/grub/menu.lst to point to the right place.
I would use a live CD and back up first to a local drive and then transfer it to network storage (Plenty space).
The bootloader thing was more if the HD fails and I have to transfer the image back.
Is this the best way to do it or is it a sledgehammer to crack a nut?
I like to dd my /dev/hda6 (complete debian lenny amd64 install with all my downloaded deb's 1.1GB in var/cache/apt/archives, screen and session settings etc.) to a usb /dev/sdb3 partition of the same 10.6GB size (76% used) and it takes under 17 minutes using bs=2048 and conv=notrunc,noerror on a weekly basis - and if I screw something up or install something I don't want, it takes the same amount of time to rewrite it back and everything is working even my wireless (broadcom 4306 using ndiswrapper and netbc564.inf drivers) so that I can get back online almost immediately.
I don't like dd as an archiver - you never know if you have problems with the backup, and has no flexibility re size and filesystem type to restore to. I use it occasionally if I think I may break a (test) system, and want a quick backup.
I recently heard about fsarchiver. Appeals more to me as it's f/s aware, and does some CRC checking - is on my list of things to try out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.