We're trying to find a system to keep a pair of servers in sync, and I've looked at a million solutions. I came across incron, which seems like it would be perfect. Now, I just need a low overhead way of copying the files that have changed to the other server. It's a local network, so encryption isn't necessary, and it's a gigabit connection, so compression is out as well.
Rsync might work, but it seems a little hefty for this task. nc seems like it would be great, but I don't know of a way to signify to the other server where the file should go from the first server.
Suggestions?
rsyncis your friend. It copies only files that have changed. Don't be scared by the many command line switches, you can probably do with only a few of them.-acombines a lot of useful switches, check the man page for more details – jippie Jun 2 '12 at 17:02