I run Ubuntu Server 11.10 i386 with Virtualbox.
I want to create and move a complete backup to a dedicated computer. If possible downtime has to be cut to a minimum because the site is running right now. I cant move only the webpage because I have a lot of settings, databases and daemon that took a long time to setup.
What are my option to easily move my virtual server to another computer that will not run Virtualbox?
I have SSH and physical access to both server.
I'd do it this way (don't just follow it without adjusting it to your actual situation):
From the virtualbox server, rsync stuff to the new one:
rsync -avuz --progress --exclude=/proc/* --exclude=/sys/* --exclude=/run / new-server:/mnt/disk1
Install grub on the new server:
sudo grub-install /dev/sda
Modify /etc/fstab to point to the right partitions/locations (if your root "/" is pointing to a UUID, you can point it to the new UUID for your new root partition or point it to /dev/sda1 or whatever you're using).
Rsync to get any files that changed since the last sync, this should take a couple of minutes at most:
rsync -avuz --progress --exclude=/proc/* --exclude=/sys/* --exclude=/run --exclude=/etc/fstab / new-server:/mnt/disk1
Reboot your server