magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 2000 > 11 > Infrastructure Feature  

Content Distribution with Rsync

By Bryant Durrell

At first glance, the rsync utility may seem like one of myriad solutions for copying files from one machine to another. Yet, when used on large systems, rsync is a powerful tool for content distribution and synchronization. And when it comes to speed and security, rsync is superior to previous generic file distribution mechanisms.

Rsync's most direct ancestors are the suite of "r" utilities—rlogin, rsh, and rdist. These command-line programs are most famous for being serious security holes. Fortunately, the holes have been plugged on most modern Unix distributions. But using rdist—rsync's closest relativeis still potentially risky. Once you've opened up rdist, you've opened up all the other "r" commands for every user on that system.

Why take the risk? Rsync can run as a secure, stand-alone server, and that reduces the possibility of compromising your password file. Rsync is also quicker than rdist. The rsync protocol transfers only the differences between two sets of files, so if you have a multimegabyte content tree, the entire tree won't need to be transferred each time you update.

Furthermore, rsync includes reasonably sophisticated mechanisms for ensuring the completeness of a copy. If a file transfer is interrupted for some reason—perhaps the network died halfway through—the partial file is deleted so as not to leave incomplete files on the server.

One popular alternative to rsync is CVS, which gives you version control along with file distribution. Version control systems are essential to good content management, but CVS might not be the right option for you.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2