rsync: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
New page: ==Overview== rsync is a Linux command-line application for synchronizing (i.e. making sure both copies have the latest versions of all files) a directo...
 
example
Line 1: Line 1:
==Overview==
==Overview==
[[rsync]] is a [[Linux]] [[command-line]] application for [[data synchronization|synchronizing]] (i.e. making sure both copies have the latest versions of all files) a directory tree between two machines.{{seed}}
[[rsync]] is a [[Linux]] [[command-line]] application for [[data synchronization|synchronizing]] (i.e. making sure both copies have the latest versions of all files) a directory tree between two machines.{{seed}}
==Related Pages==
* [[backup software]]
==Links==
==Links==
* [http://www.scrounge.org/linux/rsync.html Use rsync to back up a directory tree of files]: a basic how-to
* [http://www.scrounge.org/linux/rsync.html Use rsync to back up a directory tree of files]: a basic how-to
==Examples==
Copy a directory structure from <u>relsource</u> on <u>machine</u> to <u>reldest</u> on the local machine:
[[rsync]] -'''Pav''' <u>user</u>@<u>machine</u>:<u>relsource</u> <u>reldest</u>
* '''a''' is for 'archive', which is short for '''pr''' which are 'preserve' and 'recursive'
** '''p''' ('preserve') preserves timestamps, permissions, etc.
* '''v''' is for 'verbose', which means it tells you what it's doing
* '''P''' is for 'progress' and 'partial', which allows for resuming an incomplete copy
===Notes===
* To keep files in sync in both directions, you have to run rsync in both directions as well; there is no single command to synchronize two directory trees.
* This probably does not also remove destination files deleted from the source.

Revision as of 22:29, 29 September 2007

Overview

rsync is a Linux command-line application for synchronizing (i.e. making sure both copies have the latest versions of all files) a directory tree between two machines.<hide>

 page status::seed

</hide>

This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!

Examples

Copy a directory structure from relsource on machine to reldest on the local machine:

rsync -Pav user@machine:relsource reldest
  • a is for 'archive', which is short for pr which are 'preserve' and 'recursive'
    • p ('preserve') preserves timestamps, permissions, etc.
  • v is for 'verbose', which means it tells you what it's doing
  • P is for 'progress' and 'partial', which allows for resuming an incomplete copy

Notes

  • To keep files in sync in both directions, you have to run rsync in both directions as well; there is no single command to synchronize two directory trees.
  • This probably does not also remove destination files deleted from the source.