Cp : Add rcp_merge_hash.
This commit is contained in:
parent
7210f32565
commit
07472c8964
|
@ -18,6 +18,12 @@
|
||||||
rsync -ahP --chmod=u+w --delete --size-only "''${@}"
|
rsync -ahP --chmod=u+w --delete --size-only "''${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Copy and also merge all changes BY CHECKSUM (delete dst files that do not exist in src, compare hashes).
|
||||||
|
# Usage: rcp_merge_hash <FROM> <TO>
|
||||||
|
function rcp_merge_hash() {
|
||||||
|
rsync -ahP --chmod=u+w --delete --checksum "''${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# Copy by creating hardlinks.
|
# Copy by creating hardlinks.
|
||||||
# Works for directories, too.
|
# Works for directories, too.
|
||||||
# Usage: cp_link <FROM> <TO>
|
# Usage: cp_link <FROM> <TO>
|
||||||
|
|
Loading…
Reference in a new issue