I rented a virtual server running Ubuntu. To test changes to my configuration I'd like to be able to try them on a local machine. So basically I'd like to create a clone of the virtual server (I don't care if this clone will then run as a physical server or virtualized on a local machine) and either keep track of any changes to get some kind of script or playbook to recreate these on the remote system or publish these changes automatically.
On the remote system I've got ssh, while the target system is mine with physical access so there shouldn't be any limitations locally.
As there is a bandwith limitation I'd like to reduce the files copied as much as possible.
What it boils down to:
- Which files or directories are needed to replicate the remote machine?
- What's the best way to transfer the data? (tar'ing everyting up and scp'ing it?)
- Is there a way to create the script or playbook?