Search Computing Unplugged's 16,487 article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
WEBMASTER UPDATE
Backup server file changes with Rsync
By David Gewirtz

Traditional file synchronization programs work by matching the contents of two directories. When used as a backup, the contents of the source directory are mirrored to the destination directory. When used in a synchronization mode, the two directories are compared and files not in one are moved to the other, and vice versa.

The problem with traditional file synchronization programs is they typically work by moving or copying entire files. This is fine on a local network, especially one working at gigabit speeds. But if you're moving files from a remote server to a local machine, you might not want to move entire files, especially if the files are particularly large.

Here at ZATZ, for example, we have a number of constantly updated server files that are in excess of 20GB. Some of these are database files we can synchronize using MySQL on a record-level, but others are wildly large data files that simply can't be synchronized based on their internal structure.

And yet, because our server farm is located in Illinois and our development lab is located here in Central Florida, we want to make sure we have up-to-date complete local copies of everything running on the server. There's just no way we can download multiple 20GB+ files to our local machines on a daily basis. We'd clog the pipes and it'd still take days to download a single file.

The solution, instead, is to only download what's changed in the files and reconstruct the file at the local side by merging in the changes. We're not alone in this requirement; in fact a particularly valuable Linux utility exists to do just this.

Rsync
Rsync was developed back in 1996 by Australians Andrew Tridgell and Paul Mackerras. Tidgell used Rsync as the subject of his Ph.D. thesis (thanks, Wikipedia!). As Tridgell described it, it can take a long time to get data transmitted from the rest of the world to Australia and he set out to find a way to make it go faster.

Rsync is the result of his quest, and it's long been part of most Linux distros. But what if you want to set up Rsync under Windows, you're not a Linux command-line wiz, and you don't want to rebuild everything on your server? That's what this article's all about.

Backing up servers
We're going to go through a scenario you can use to backup your server. As it turns out, there's a really slick little utility that'll get you most of the way.

Called DeltaCopy, this free utility is really a front-end to the Cygwin version of Rsync. But what makes DeltaCopy nice is that it comes with just rsync.exe and the necessary Cygwin DLLs, and that means you don't need to download the massive Cygwin install.

The first thing to do is install DeltaCopy on your server. Just double-click the installer and tell DeltaCopy to install Rsync as a service, as shown in Figure A.


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Reviews > Software > PC (21 articles)
   VMWare Fusion makes your Mac one machine to rule them all
   UltraEdit is an ultra-useful editor
   Use the i-Sound Pro recorder to beef up your radio chops
Home > Solutions > Webmaster tech (2 articles)
   VMWare Fusion makes your Mac one machine to rule them all
Home > Solutions > Backup strategies (2 articles)
   Eight steps to successful and reliable home backups
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent Computing Unplugged Articles
When WordPress 3.0 Multisite won't let you log in
Choosing the right smartphone for you
Picture Porter 35, a portable hard drive/viewer for photographers
Time to pay the paper?
Photoshop CS5's great new lens correction feature
Photoshop CS5's great new high dynamic range imaging features
Photoshop CS5's great new Puppet Warp feature
Computing Unplugged News
Android wallpaper app that steals your data was downloaded by millions
New Zealand pizza lovers suffer information theft from Hell
Could open source tools make Facebook the next AOL?
Amazon unveils 3rd-generation Kindle e-book reader
Dell Streak: What a Mess
$20 Wikipedia Reader Uses 8-Bit Computing Power
Google Assembles Parts for Facebook Rival
>> Read all the news
More from the ZATZ journals
David Gewirtz Online: CNN commentary and analysis
DominoPower: Smart Upgrade bug in Domino 8.5.1 (and some work-around tips)
OutlookPower: The two most motivational words in the English language
-- Advertisement --

EASY DEDICATED AND VIRTUAL DEDICATED SERVERS FOR AS LOW AS $67.99 PER MONTH
Customize and configure your own dedicated server. Simply choose one of our popular plans or select your own Linux or Windows server and plan options.

NO LONG WAITS. Server provisioned within hours.

Tap here now and be up and running with your own server tonight.

-- Advertisement --

Printing emails and attachments has never been simpler
When it comes to printing emails or attachments, you can be confident that our Auto-Print add-in can do what Outlook lacks - print the emails and/or attachments as soon as they arrive.

Discover this professional tool today.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2003-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login