tutorials:rsync
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorials:rsync [2012/06/15 01:06] – created chkuo | tutorials:rsync [2012/06/15 01:18] (current) – chkuo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== rsync ====== | ====== rsync ====== | ||
| - | '' | + | '' |
| - | For example, if I want to sync (i.e., update all files that have been newly created or modified and remove all files that have been deleted) the '' | + | ===== Examples ===== |
| + | If I want to sync (i.e., update all files that have been newly created or modified and remove all files that have been deleted) the '' | ||
| <code bash> | <code bash> | ||
| rsync -av --delete ~/ | rsync -av --delete ~/ | ||
| - | </bash> | + | </code> |
| Alternatively, | Alternatively, | ||
| <code bash> | <code bash> | ||
| rsync -av --delete oak.local:/ | rsync -av --delete oak.local:/ | ||
| - | </bash> | + | </code> |
| - | This better than '' | + | This is better than using '' |
| + | It is **important** to note that the absence or presence of the trailing slash at the end of the source directory (i.e., '' | ||
| + | |||
| + | ===== Advanced uses ===== | ||
| + | If we need to sync some directories quite often (like the '' | ||
tutorials/rsync.1339693582.txt.gz · Last modified: by chkuo