rsync
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rsync [2015/05/06 08:49] – luke7858 | rsync [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| rsync -avzh $source_directory $_destination_directory/ | rsync -avzh $source_directory $_destination_directory/ | ||
| </ | </ | ||
| - | === ==== | + | === Exclude Directories Locally |
| + | The . represents the current directory | ||
| <sxh bash> | <sxh bash> | ||
| + | rsync -avzh --exclude ' | ||
| </ | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | Need to update | ||
| <sxh bash> | <sxh bash> | ||
| - | a - archive mode | + | rsync -avn --delete |
| - | v - verbose | + | rsync -avni --delete |
| - | r - recursively | + | rsync -avni --update |
| - | z - compress | + | </ |
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | <sxh bash> | ||
| + | -a - archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, | ||
| + | -v - verbose | ||
| + | -r - recursively | ||
| + | -z - compress | ||
| + | -h - human readable output | ||
| + | --progress - show progress report | ||
| + | --include - include only the directories mentioned | ||
| + | --exclude - exclude only the directories mentioned | ||
| </ | </ | ||
rsync.1430902184.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
