Submitted by ttyllc on Thu, 10/27/2016 - 13:30 Pro Licensee
Ubuntu 16.04
I could not find any specific documentation on the functionality in subject.
Server Configuration Transfer Virtual Server
What happens exactly? does the target system have to be a virtualmin virtual server? can it be a whole different machine without virtualmin?
can I create a cronjob to schedule regular transfers?
Status:
Closed (fixed)
Comments
Submitted by andreychek on Thu, 10/27/2016 - 13:43 Comment #1
Howdy -- at the top of that page is a "?" character that you can click in order to receive help and information regarding how that works.
That particular feature is only designed to be run immediately though, there isn't a way to schedule it with cron.
However, you could use cron if you used the command line tools.
What you could do is use "virtualmin backup-domain ..." on the command line to generate a backup, and then copy that backup to another system, and optionally restore it using "virtualmin restore-domain".
Submitted by ttyllc on Thu, 10/27/2016 - 13:51 Pro Licensee Comment #2
Maybe you have a better suggestion, I'm trying to setup live replication of a website. Database and the whole public_html folder.
What do you suggest?
rsync and mysql master-slave configuration (since the apache settings won't change, there is no need to worry about that)
Submitted by andreychek on Thu, 10/27/2016 - 14:14 Comment #3
Behind the scenes, all Transfer Virtual Server does is generate a Virtualmin backup, copy it, and then restore it into another Virtualmin system.
I'd probably do that very thing using a script and the command line tools.
You can run "virtualmin backup-domain" and "restore-domain" to see the available options.
There other ways to do it, but that may be one of the simplest.
Submitted by ttyllc on Fri, 10/28/2016 - 14:34 Pro Licensee Comment #4
should I look into cloudmin? for failover/backup?
The solution proposed does not do live replication.
Submitted by andreychek on Fri, 10/28/2016 - 16:04 Comment #5
For immediate/live replication, you would need to look into a different tool. Even Cloudmin's form of replication is simply frequent backups and restores, they aren't immediate and/or live.
Some folks use some form of shared storage rather than replication.
But for actual replication, you'd need to look into some form of replicated filesystem, including things like GlusterFS, DRDB, Apache Helix, and the like. There isn't native support for any of those in Virtualmin or Cloudmin though, that's something that would need to be configured manually.
Submitted by ttyllc on Tue, 11/01/2016 - 08:44 Pro Licensee Comment #6