tools:rsync
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:rsync [2025/10/12 05:41] – Humphrey Boa-Gart | tools:rsync [2025/10/12 07:40] (current) – [rsync] Humphrey Boa-Gart | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== rsync ====== | ====== rsync ====== | ||
| - | {{wst> | + | **rsync** //(or **remote sync**)// is a [[tools: |
| + | While you can technically use the '' | ||
| + | |||
| + | If you are already familiar with using [[tools: | ||
| ===== Useful Commands ===== | ===== Useful Commands ===== | ||
| Line 34: | Line 37: | ||
| $ rsync -avz -e ssh user@remote:/ | $ rsync -avz -e ssh user@remote:/ | ||
| - | In the case of both of these commands, //" | + | In the case of both of these commands, //" |
| + | |||
| + | $ rsync -avz -e ssh user@remote1:/ | ||
| + | The source and destination cannot both be remote. | ||
| + | |||
| + | So if you want to sync between two remote machines, you will have to first SSH into one of them and run '' | ||
| ==== Incremental Backups ==== | ==== Incremental Backups ==== | ||
| - | {{wst> | + | If you are regularly backing up the same folders, drive, server, etc, then '' |
| + | |||
| + | $ rsync -avu --delete / | ||
| + | |||
| + | With the '' | ||
| + | |||
| + | This is the form of '' | ||
| + | |||
| + | If you are looking for an even more failsafe way to ensure the quality of backups, use the '' | ||
| + | |||
| + | ==== Interrupted Backups ==== | ||
| + | |||
| + | When '' | ||
| + | |||
| + | However, if you're dealing with very large files, you do not want to have to start over. Use the '' | ||
| + | |||
| + | |||
| + | ==== Excluding Things From Backups ==== | ||
| + | |||
| + | If there are files/ | ||
| + | |||
| + | $ rsync -av --exclude ' | ||
| + | |||
| + | If you have a lot of exclusions, you can list them all out one-per-line in a text file, and pass it to '' | ||
| + | |||
| + | $ rsync -av --exclude-from ' | ||
| + | |||
| + | You can even exclude things like specific filetypes: | ||
| + | |||
| + | $ rsync -av --exclude=' | ||
| Line 46: | Line 84: | ||
| * Use the '' | * Use the '' | ||
| - | * Use **--progress** to see real-time transfer status. | + | * Use '' |
| + | * Use '' | ||
| + | * Use '' | ||
| - | ===== What About Automatic Backups? ===== | ||
| - | {{wst> | + | ===== What About Automatic Backups? ===== |
| + | '' | ||
| - | {{tag> | + | {{tag> |
tools/rsync.1760247675.txt.gz · Last modified: by Humphrey Boa-Gart
Find this page online at: https://bestpoint.institute/tools/rsync
Find this page online at: https://bestpoint.institute/tools/rsync