rsync -chavP --inplace --remove-source-files ./src ./dest
-c
checksum-h
human sizes-v
verbose-P
shortform for--progress --partial
-u
update -- skip files that are newer on remote
--inplace
copy from original src instead of making a copy of it then copying it- advantage: speeds up
rsync
ops, preserves hardlinks - disadvantage: src file I/O access restriction error possibility, delta transmission feature breaks
--remove-source-files
deletes src files after copy- NB: doesn't remove dirs after copy, can remove with
rmdir *
, sigh