rsync
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| rsync [2015/05/06 08:38] – created luke7858 | rsync [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| rsync -avzh -e "ssh -p 666" --progress directory/ [email protected]: | rsync -avzh -e "ssh -p 666" --progress directory/ [email protected]: | ||
| </ | </ | ||
| + | === Directory Locally === | ||
| <sxh bash> | <sxh bash> | ||
| + | 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> | ||
| + | rsync -avn --delete | ||
| + | rsync -avni --delete | ||
| + | rsync -avni --update | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | <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.1430901533.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
