rsync
code:bash
# save child_dir in parent_dir
## Backup
rsync -auzv -e ssh <server>:/path/to/child_dir /path/to/parent_dir/
## Backup (without skipping files that match size and time)
rsync -auzv -I -e ssh <server>:/path/to/child_dir /path/to/parent_dir/
# Use checksum
rsync --checksum -av -r --progress -e ssh remote:/path/to/source ./
# Preserve permission
sudo su -
rsync -av 同期元/ 同期先/