Using the rsync command to synchronize files
Posted on 2011-05-03
I was wondering whether there's a way to get the rsync command to actually synchronize files rather than just supporting a one-way mirror. For example, if I push files A, B and C on HOST1 to HOST2, then change file B on HOST2 before pushing the files again, the copy of file B on HOST1 will overwrite the changes I made to file B on HOST2. That is not the behavior I'm looking for. I need a method that will merge the changes between the two hosts. I've heard of Unison, but there's no binary for AIX, and I won't be compiling any sources.