dapurhosting.com Blog for Tech

August 22, 2017

Rsync with a non-standard ssh port

Filed under: Server — dh @ 9:45 am

Rsync file dari remote server ke lokal

rsync -azP -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/

Rsync file dari lokal ke remote server

rsync -azP -e "ssh -p $portNumber" /local/path/ user@remoteip:/path/to/files/

Rsync email cPanel

rsync -ahzP --exclude '*dovecot*' --exclude 'maildirsize' -e "ssh -p $SSHPORT" /home/USERCP/mail/ root@DESTINATIONSERVER:/home/USERCP/mail/

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress