Tutorial rSync Linux
Tutorial rSync Linux

Cara Menjalankan Rsync Over SSH

Cara Menjalankan Rsync Over SSH – With rsync, we can use SSH (Secure Shell) for data transfer, using SSH protocol while transferring our data you can be ensured that your data is being transferred in a secured connection with encryption so that nobody can read your data while it is being transferred over the wire on the internet.

Also when we use rsync we need to provide the user/root password to accomplish that particular task, jadi dengan menggunakan SSH option will send your logins in an encrypted manner so that your password will be safe.

Copy a File from a Remote Server to a Local Server with SSH

To specify a protocol with rsync you need to give “-e” option with protocol name you want to use. Here in this example, We will be using “ssh” with “-e” option and perform data transfer.

Cara mengirim file dari remote server ke local: rsync -avzhe ssh [email protected]:/root/install.log /tmp/
Cara mengirim files dari local ke remote server: rsync -avzhe ssh backup.tar [email protected]:/backups/