Cp : Add rcp_merge_fast.

This commit is contained in:
Dmitry Voronin 2024-04-12 13:10:40 +03:00
parent 891be4e038
commit 7210f32565
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -12,6 +12,12 @@
rsync -ahP --chmod=u+w --delete "''${@}"
}
# Copy and also merge all changes FAST (delete dst files that do not exist in src, only compare size).
# Usage: rcp_merge_fast <FROM> <TO>
function rcp_merge_fast() {
rsync -ahP --chmod=u+w --delete --size-only "''${@}"
}
# Copy by creating hardlinks.
# Works for directories, too.
# Usage: cp_link <FROM> <TO>