Hacker News new | past | comments | ask | show | jobs | submit login

The rsync algorithm and program are both great, and I use the program a lot to update directory trees across the network. It's also my default tool for synchronizing two directories on the same system. The rsync program correctly optimizes for this case by skipping the rsync algorithm and completely copying changed files. However, it still uses multiple processes and seemingly still calculates some hashes, making it slower than it needs to be.

Joey found [0] that running rsync once in dry-run mode to find what files have been changed, copying them each with cp, then running rsync a second time to handle things like deletions and file permissions resulted in a major speedup.

[0] http://kitenet.net/~joey/blog/entry/local_rsync_accelerator/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: