Synchronizing files with Rsync


Article from Issue 67/2006

Rsync lets you synchronize your data – on either a local or remote computer. You can even use Rsync with SSH to encrypt your data.

Rsync keeps your data up to date and helps you stay on top of confusing version changes. The Rsync synchronization tool gives you op tions that help you manage file proper ties; Rsync works well with SSH, and it is perfect for quickly transferring large volumes of data if the target computer already has a copy of a previous version. Rsync checks for differences between the source and target versions of the data and only transfers the data that has changed. In Sync Rsync compares the data on two ma chines. The generic syntax for this is rsync [options] source target. The choice of source and target is critical. Decide carefully in which direction you will be synchronizing to avoid loss of data. The box labeled "Data Unison" discusses an alternative to this one way street based on the Unison tool, which can sync in both directions.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Charly's Column

    Charly may be a traditionalist with sync-unfriendly duplicate home directories, but a little utility called Unison helps keep his data consistent . This month you’ll learn why Rsync sometimes isn’t enough.

  • Conduit and Unison

    Find out how the Conduit and Unison utilities can keep your documents and files in sync on multiple computers.

  • Admin Workshop: Backups with Rsync

    It is often inefficient to fire up a tape drive whenever you need to back up files or restore a backup. The Rsync tool pushes critical files to a second computer, where you can access them easily.

  • Website Backup

    Shared hosting is the best way for first-time webmasters to get started. But what do you do about backup?

  • Rotating Backup with rsync
comments powered by Disqus