Synchronizing files with Rsync

STAYING IN SYNC

Article from Issue 67/2006
Author(s):

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

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
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.

  • Rotating Backup with rsync
  • libferris

    With libferris, FUSE, and rsync, you can synchronize a filesystem with a dissimilar data source.

comments powered by Disqus

Direct Download

Read full article as PDF:

Command_Line_Rsync.pdf (167.88 kB)

News