Operating System - HP-UX
1834604 Members
3984 Online
110069 Solutions
New Discussion

Advice on mirroring data!

 
SOLVED
Go to solution
Adam Noble
Super Advisor

Advice on mirroring data!

We currently have 2 servers with one acting as a true idle standby server. The only data that changes on the primary node is within the /home directory. I have been asked to put a script together which will run every 3 hours to update the /home directory on the idle server to keep them relatively in sync. I'm just trying to determine the cleanest way of doing this....anyone got any ideas.

Thanks
5 REPLIES 5
Sanjay Kumar Suri
Honored Contributor

Re: Advice on mirroring data!

/home generally contains User directories. cron is best suited to run your script.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
T G Manikandan
Honored Contributor

Re: Advice on mirroring data!

kamal_9
Super Advisor

Re: Advice on mirroring data!

hi
just create your script and schedule the job using cron
Adam Noble
Super Advisor

Re: Advice on mirroring data!

I'm aware I could use cron, however the problem is as one of the posters has picked up on I only want to update files that have changed. If I simply copy the data each time, I will have files on the idle server that will no longer be required. Also I would like to know when files on the idle server can be removed as they are no longer on the primary node.
T G Manikandan
Honored Contributor
Solution

Re: Advice on mirroring data!

With that rsync there is an option as --delete which will delete the files on the idle machine if those files were not present on the server.