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:56] – 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> | ||
+ | rsync -avn --delete | ||
+ | rsync -avni --delete | ||
+ | rsync -avni --update | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
<sxh bash> | <sxh bash> | ||
-a - archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, | -a - archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, |
rsync.1430902598.txt.gz · Last modified: 2024/05/23 07:26 (external edit)