Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making directory on each in sync

Status
Not open for further replies.

gatetec

MIS
Mar 22, 2007
420
US
I have a cluster node with 5.3 TL 7, and each node has a directory called /tempfs. If there are any changes on /tempfs on Node #1, I want to have it sync'd with /tempfs on Node #2 or vice versa.
I can think of using cron with * * * * * to copy from /tempfs on Node #1 to /tempfs on Node #2, but there will be the time interval.

Is there any way to make them in sync so that, whichever node is being used, the other node can get the same files/contents?

thx so much
 
rsync command can do this for you! it copies only the differences among the directories so it is very light on the network which can be configured in a crontab to run every 10 mins or so!

Regards,
Khalid
 
Do I need to install any thing for using rsync?

thx much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top