Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a linux server, and i want to make an image of the whole drive in real-time, like acronis does.

share|improve this question
    
could you further explain 'wants in a real time.'? W/ linux, you can literally just do a dd on the /dev/hdX and get an image of the hard drive. Very easy to do and very easy to put back (just change the if and of options around basically) –  g19fanatic Dec 7 '10 at 12:27
    
yeah, I wasn't sure you could do that with an in use root partition. i think in real time means without going to alternate boot media –  hbdgaf Dec 7 '10 at 12:42

2 Answers 2

I use LVM religiously. It makes filesystem management so much easier...if you use lvm there's a tutorial here: http://www.howtoforge.com/linux_lvm_snapshots

share|improve this answer

LVM is a good choice.

LVM snapshot can be created in real time by -s when using lvcreate: http://fclose.com/p/linux/man/8-lvcreate/#lbAE

For example, we can create a 2GB snapshot of lv_root by:

# lvcreate -L20480 -s -n 'lv_root_snapshot' /dev/vg/lv_root

Then we can dd the snapshot out (this cost time):

# dd if=/dev/vg/lv_root_snapshot of=/var/backup/lv_root.img
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.