Rsync in case of custom SSH port.
rsync -v file2transfer -e "ssh -p 220" root@destinationIP:/
-v : Verbose (try -vv for more detailed information)
-e ssh :specify the ssh as remote shell
220 : is the ssh port of the remote server
Example for rsyncing mysql
rsync -arv root@IP:/var/lib/mysql/databasename /var/lib/mysql/
Leave A Comment
You must be logged in to post a comment.