Incubaid Research – Rediscovering the RSync Algorithm

Don’t walk the folder and ‘rsync’ each file you encounter. A small calculation will show you how bad it really is.

Suppose you have 20000 files, each 1KB. Suppose 1 rsync costs you about 0.1s (reading the file, sending over the signature, building the stream of updates, applying them). This costs you about 2000s or more than half an hour.

System administrators know better:they would not hesitate: “tar the tree, sync the tars, and untar the synced tar”.

Suppose each of the actions takes 5s (overestimating) you’re still synced in 15s.

via Incubaid Research – Rediscovering the RSync Algorithm. The right way to synch two remote file systems.

Justin graduated from Texas Tech University with a bachelor's degree in Computer Science. Justin relishes programming and learning more about anything and everything. When not working as a Web Developer with Loadsys, Justin occasionally gives talks at the local PHP Meetup. In his free time, Justin enjoys backpacking and reading science fiction books.

Tagged with: , , , , ,
Posted in Programming, Quick Posts, Security, Software Code
Short Link: http://jty.me/zv5keL

Subscribe

Subscribe to this site via RSS | Twitter | App.net

Follow me on Twitter | GitHub

Newly Finished Books