I need advice how to rsync via ssh (and what directories need to be synced) between a KVM VPS (Debian Jessie) and VirtualBox to effectively make the VirtualBox a clone of the VPS. I use the term "clone" loosely because what I REALLY need is for it to sync
- Libraries
- Programs (and all their dependencies)
- Program Settings
- Users
- User Settings
- User Files
- Permissions (attached to files)
- Other ??
Basically I need a way to sync where if I install Program A on VPS, after the sync I want Program A to run perfectly fine on the VirtualBox... It doesn't need to sync any network info as the gateway etc will be different on the VBox.
For example, let's say on the VPS, I install a firewall and configure it to block port 22 (this would be horrible because ssh would stop, but just suppose). I'd like after the sync for the firewall to be installed on the VBox machine with the firewall settings intact.
I'm doing this because I would like a way to experiment with new libraries and extensions and programs on the VirtualBox machine before uploading or changing these settings on the VPS. But my knowledge is lacking as to which directories are needed to sync and which are not.