I want to move all my data(incl. software and settings) from one VPS to another. I'm currently using a remote Ubuntu server. How can I make a full system image back-up and restore it in a new Ubuntu VPS without having to install all softwares again. I have explored the following options
- I have ruled out Clonezilla has it cannot do online imaging and I cannot afford to shut down my system
- I can do a full system back-up using tar
tar cvpzf backup.tgz --exclude=/proc ---exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
Will this copy all my Apache/MySql settings etc? Should I still install all software manually on the new VPS and then update the settings with this tar file? 3. I can also do rsync which I think does the same job as
tar # rsync -aAXv --exclude={"/dev/","/proc/","/sys/","/tmp/","/run/","/mnt/","/media/*","/lost+found"}
/* /path/to/backup/folder
4. I'm exploring LVM to make a snapshot
My ultimate aim: Move all data and software from one VPS to another with minimum manual installation and re-configuration. How can I go about this?