Rsync
# Pull Mode
rsync -arv -e "ssh -p 2222 -i .ssh/pvkey" root@192.168.1.2:/remote/file /local/file
# Push Mode
rsync -arv -e "ssh -p 2222 -i .ssh/pvkey" /local/file root@192.168.1.2:/remote/file
# Restart atfer being interrupted
rsync --append-verify ...
Last updated