Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Synchronise system changes on two computers?

how to synchronize two folders which are located on different servers. I need that if someone put any data on folder A then it will automatically copy in folder B. Folder A is in German Server and folder B is in Indian Server. I have Admin Access on Indian Server and user access on German Server. Both file server are on Ubuntu OS.

share|improve this question

marked as duplicate by RedGrittyBrick, Keltari, Diogo, Dave Rook, ChrisF Jan 21 '13 at 13:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

Just schedule a local rsync, over ssh job, to run every few min's, it's secure and reliable e.g.

2,12,22,32,42,52 * * * * /usr/bin/rsync -optlgrz --delete-after --rsh=/usr/bin/ssh --rsync-path=/usr/bin/rsync --force /local_directory/  user@remoteHost:/dest_directory  2>&1  >>/var/log/rsync_directory.log
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.