Page 1 of 1

How to sync files between servers. W/O SQL

Posted: Sun May 26, 2019 7:36 am
by Vegas10128
Hello Everyone!
My current setup is 3 Vesta CP servers configured in a round robin configuration using 1 domain.
All 3 of these servers will be hosting 1 website, and my 4th server is an remote SQL server for storing SQL data

My question is, How can i sync files from the webroot of 1 Vesta CP server to another Vesta CP server using the same domain?
(Realtime file sync)

Please keep in mind i do not need to worry about SQL Syncing.

I been having difficulties attempting Rsync as there is a lot of mixed information in the vesta forums.
Responses usually complain about SQL and do not receive accurate answers to fix this challenge.
Some other responses provide vague information, lacking commands & example directories.

Your help is much appreciated!

Re: How to sync files between servers. W/O SQL

Posted: Tue Jul 09, 2019 7:59 pm
by HenrysCat
If your only syncing files this will sync files from public_html folder on the remote server to local server.

Code: Select all

rsync -va [email protected]:/home/admin/web/mydomain.com/public_html/ /home/admin/web/mydomain.com/public_html/