meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:rsync [2025/03/30 19:56] – niziak | linux:rsync [2025/12/29 15:40] (current) – [get changes to separate dir] niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== rsync ====== | ====== rsync ====== | ||
| + | |||
| + | ===== mv & cp replacement ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | cpr() { | ||
| + | rsync --archive -hh --partial --info=stats1, | ||
| + | } | ||
| + | mvr() { | ||
| + | rsync --archive -hh --partial --info=stats1, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Above command doesn' | ||
| + | Best workaround is to delete empty source dirs manually: | ||
| + | |||
| + | <code bash> | ||
| + | find . -type d -empty -delete | ||
| + | </ | ||
| ===== get changes to separate dir ===== | ===== get changes to separate dir ===== | ||
| - | Option '' | + | Option '' |
| > If DIR is a relative path, it is relative to the destination directory | > If DIR is a relative path, it is relative to the destination directory | ||