Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

so I have my dedicated server that is set to expire tomorrow. What I need to do is a full backup of everything, with the OS and everything on it. And when I say full backup, I mean a backup that can easily be restored to another dedicated server. I have installed lots of third party stuff such as red5, cpanel, and solusVM. I also have my IPtables, and php configured just the way I need it. What would be the best way to do this so I can restore it to another dedi? Thanks.

share|improve this question
2  
Sounds like it's too late... –  ewwhite Sep 3 '12 at 16:58
    
It can't be important stuff. Otherwise you would just run your backup a last time and be done with it. –  SvW Sep 3 '12 at 16:59
    
Some of that software is commercially licensed and attached to the hardware. You're going to have a hard time moving it. –  Charles Sep 3 '12 at 17:00
add comment

1 Answer

dd if=/dev/sda1 of=disk.img

This makes a complete copy of your system, that you in theory could just reverse on another box, and everything might run.

There are probably much better solutions, but this one is one of the simple ones.

There might need some additional command switches, as this is very basic.

It is of course very important that you do not do this while the OS is running - do it from some kind of rescue system or live OS.

share|improve this answer
    
That's the easiest way, but this should not be done in a running system where the file system is still active, as you are likely to get incosistencies. –  SvW Sep 3 '12 at 17:00
    
@SvenW True - it should be done from some kind of rescue system. Edited original post. –  Frederik Nielsen Sep 3 '12 at 17:03
    
You could also mount the img file and still access your data incase if you cannot recover reverse it on a new hardware –  Chida Sep 3 '12 at 17:03
    
How would I restore it onto a new server? And can I pull individual files from that? Like php files from my html dir? –  CJ Sculti Sep 3 '12 at 17:44
    
And when I run that I get 208782+0 records in 208782+0 records out 106896384 bytes (107 MB) copied, 1.21586 seconds, 87.9 MB/s.. Is my system not more than 107mb... –  CJ Sculti Sep 3 '12 at 17:48
show 2 more comments

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.