Copy with rsync over ssh

From remote server to local one:

rsync -avzhe ssh remote_user@REMOTE_IP:/remote_folder_or_file /local_destination_folder_or_file

From local server to remote one:

rsync -avzhe ssh local_folder_or_file remote_user@REMOTE_IP:/remote_destination_folder_or_file

That’s it, Enjoy!

Sources:

https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek
This entry was posted in Linux and tagged , , . Bookmark the permalink.

Leave a comment