Help transferring domain between my two servers

4 posts / 0 new
Last post
#1 Wed, 11/29/2017 - 04:52
santxus

Help transferring domain between my two servers

Hi All

I have two servers with virtualmin running correctly, one is the master and the second one is the salve, both working with keepalived . So i created a cronjob to copy my domains hourly.

Everything is working fine but my problem is that in the command that i use contain the root password . My question is , can i change this command to use private key or different user instead of root password ?

virtualmin transfer-domain --domain mydomain.net --host slavehostip --pass rootpassword --replication --overwrite

Wed, 11/29/2017 - 15:19
tpnsolutions
tpnsolutions's picture

Hi,

You could simply make use of rsync over SSH where public/private keys are supported. If you simply want to replicate files in the home directory this would work well via cron.

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Thu, 11/30/2017 - 03:23 (Reply to #2)
santxus

Thank you for your answer, but im replicating as well mysql database and option for the domain at the same time, for that reason i need use this command

Tue, 12/05/2017 - 06:59
santxus

Please help...

Topic locked