rsync

mirroring a folder between 2 servers

I've used this script to synchronize 2 public directorys inside 2 mongrel clusters. but you can use it to continously sync/mirror any 2 directorys on 2 different servers. note that it any change made will be committed instantaniously (or with a delay due to connection only) on the other directory. This uses inotify tools to know on any file create/change/delete and rsync to commit the changes on the other server.

howto setup an rsync server (debian/ubuntu)

rsync is a great tool for synchronizing 2 directories (or files) either one of them is remote and the other is local, or 2 local folders (it doesn't support synchronizing 2 remote servers, yet). the power of rsync comes from that it doesn't transfer anything unless it detects that it's changes since last run. moreover, it transfer the changes in files only (unless you specified otherwise), and it can even compress files before sending which makes it ideal for continuous backups and mirroring


Syndicate

RSS feed