I have a task to create a passive sync between a production server and a staging server which are located in two different geographical locations.
The environment is fully Linux based (CentOS/RHEL) and the size of the data to be synced is about 1.5GB per day and only once per day.
The method I chose is rsync
.
The source directory to sync resides on a CentOS database server called 'pg4' which has a NFS mounted share to another server in the same LAN, let's refer to this other server as 'mass1'.
My idea was to create a cron
job of rsync
on 'mass1' and to push the files from there to the target server around the globe on a line which is capable for the task.
The DBA which gave me this task insists that the rsync
cron
job should be configured straight on the database server 'pg4' rather than on the server where the data is but the one which holds the mount to the folder to sync.
My question is:
Will rsync
copy the data first to the 'pg4' server and then to the target server if I configure the cron
job there? or will it do the rsync
straight from the 'mass1' server?
I would think that logically, configuring the cron
job on 'mass1' server would be the right way to do it, what do you think?
Thanks in advance