Created
December 31, 2016 15:16
-
-
Save bajorekp/5f7b903f4d59260776320a91ba85d066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -azP --delete source_dir/ destination | |
# -a (archive mode) sync option (recursion, keep the same symlinks, preserve file attributes ex. premissions, time) | |
# -z compress file data during the transfer | |
# -P show progress | |
# --delete delete extra files | |
# -e specify the remote shell to use | |
rsync -azP --delete -e "ssh -p 22 -i ~/.ssh/key" source destination | |
# receiving file list ... | |
# 1 file to consider | |
# x | |
# 3581704033 100% 1.28MB/s 0:44:18 (xfer#1, to-check=0/1) | |
# | |
# sent 38 bytes received 1300387893 bytes 488592.12 bytes/sec | |
# total size is 3581704033 speedup is 2.75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment