Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an install of Ubuntu Maverick on slicehost, that I'd like to replicate on a different machine (a kvm VM install).

Is there a simple way of mirroring all it? I mainly care about installed programs, installations, mysql + postgres config/data.

okay.. so I guess I mainly care about everything. maybe except for network config, which I can fix easily enough.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Remastersys is a free and open source program for Debian, Ubuntu-based, or derivative software systems that can:

  • Create a customized Live CD/DVD (a remaster) of Debian and its derivatives.
  • Back up an entire system, including user data, to an installable Live CD/DVD.
share|improve this answer
2  
It's really only a matter of time before this link is dead. Could you reproduce the gist of it here? (with proper attribution of course. ) –  Stefano Palazzo Aug 8 '11 at 12:11
1  
Looks like this is the main project page. If it goes dead, then either the project is gone, or it has moved to somewhere else, and google will help to find it. –  Sunny Aug 8 '11 at 18:04
    
That link is now dead. –  Robert J. Feb 22 at 3:59

I've never used SliceHost, but the following should work with any hosting provider that grants you full root access over SSH to your hosted machine.

Basically, use rsync in "archive" mode.

  1. Create the file/partition/LVM logical volume large enough to contain all the files from your remote VM. Format it and mount on /mnt.

  2. Run rsync:

    rsync -a -z -A -X -e ssh --inplace --progress root@remotehost:/ /mnt/
    

You might want to add a -n to the rsync invcation to test it before doing the transfer.

If you don't have any POSIX ACLs or extended attributes in the remote VM, you can leave out the -A or -X options respectively. If you have any hard-links on the remote VM, you must add a -H option.

share|improve this answer
    
Well, I was looking for something more aware of the OS. I know I can use rsync/rdiff-backup and exclude sys proc tmp and such.. but that's not very clean, and works better for backups IMO, then cloning a full machine. –  csgeek Oct 18 '10 at 16:38

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.