Transferring Files with rsync and ssh from Server to Server

This rsync Command is really helpful for transferring data to another server.
I need this very often.
rsync -vrlptgoD -e ssh ./yourfile.tar.gz root@XXX.XX.47.73:/root

If you need to change the ssh Port, you can write it as a string:
rsync -vrlptgoD -e 'ssh -p1356' ./yourfile.tar.gz root@XXX.XX.47.73:/root

Leave a Reply