Skip to content

rsync

1
2
# copy
rsync -aP
 -r, --recursive             recurse into directories
 -v, --verbose               increase verbosity
 -z, --compress              compress file data during the transfer
 -n, --dry-run               perform a trial run with no changes made

 -p, --perms                 preserve permissions
 -E, --executability         preserve executability
     --chmod=CHMOD           affect file and/or directory permissions

Ref

How to tell rsync do not check permissions https://serverfault.com/questions/495527/how-to-tell-rsync-do-not-check-permissions