Replicating a VPS with Moodle

People, I have a VPS with Ubuntu 16.04, and I Have installed Moodle.

My question is… Which is the best way to have the VPS Replicated? I have installed Moodle with Postgresql and I knew how replicate the DB with londiste, but the idea is replicate the entire VPS on another.

Somebody can help me?

Thanks in advance. Regards, Gabriel


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

“but the idea is replicate the entire VPS on another” another what ?

This may be an indirect answer but hopefully it will help. I’m using Google Cloud and then VMware on my notebook because I want to transfer VM images from Google Cloud to my notebook. Google Cloud has an SDK you can install on your notebook that lets you manage the VM images that are created on Google Cloud from your notebook. Ideally you would want to just copy the VM image and launch it in the respective host OS with something like VMware Player. The VM image would have a complete OS install and Moodle. The problem with Google and VMware is that I’m not sure what Google uses to create the VM in Google Cloud their own software or some version of VMware or Virtualbox ? I don’t know if the Google VM will work on VMware Player. Soon I will test this (anybody else??)

I’ve done these transfers with VMware images from Windows to Linux and vice versa no problem using VMware Player. Just relaunch the VM in the respective Host OS on VMware Player. If you want the two VM’s to communicate and replicate data that gets a little bit more complex.

If you can copy the entire VM image to someplace else on your host site it shouldn’t be a problem depending on how they configure their IP/DNS addressing. If it’s dynamic it will spin up and give you a new accessible address and DNS name. It not you will have to configure that provided you want outside access. It depends on you hosting site and how much control they give you. But from theory standpoint your VPS should be a VM image, you can copy that image someplace else or you should.

You need to find out from your hosting company what they are using to create the VM image. Most likely if you Hosting service is committed to Ubuntu it might be KVM but also could be something else. You need to find out what they are using.

VM=Virtual Machine which is independent of VMware which is a company.