Difference between revisions of "rsync"
Jump to navigation
Jump to search
(→Examples: woozle/rsync page) |
(some reorg; added mikerubel.org link) |
||
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.{{ | + | [[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.{{seedling}} |
==Related Pages== | ==Related Pages== | ||
* [[backup software]] | * [[backup software]] | ||
− | == | + | ===user pages=== |
− | * [ | + | * [[user:Woozle/rsync]]: full command, showing actual options we use, including machine names |
==Examples== | ==Examples== | ||
Copy a directory structure from <u>relsource</u> on <u>machine</u> to <u>reldest</u> on the local machine: | Copy a directory structure from <u>relsource</u> on <u>machine</u> to <u>reldest</u> on the local machine: | ||
Line 12: | Line 12: | ||
* '''v''' is for 'verbose', which means it tells you what it's doing | * '''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 | * '''P''' is for 'progress' and 'partial', which allows for resuming an incomplete copy | ||
− | |||
− | |||
===Notes=== | ===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. | * 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. | * This probably does not also remove destination files deleted from the source. | ||
+ | ==Links== | ||
+ | ===How To=== | ||
+ | * [http://www.mikerubel.org/computers/rsync_snapshots/ ''Easy'' Automated Snapshot-Style Backups with Linux and Rsync] | ||
+ | * [http://www.scrounge.org/linux/rsync.html Use rsync to back up a directory tree of files]: a basic how-to |
Revision as of 22:55, 20 May 2009
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.
Related Pages
user pages
- user:Woozle/rsync: full command, showing actual options we use, including machine names
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.