jcadima
8/29/2015 - 4:58 PM

Synchronize a file/directory FROM a remote machine via SSH

Synchronize a file/directory FROM a remote machine via SSH

Let us say you would like to backup files from remote server called host.hostworksnow.com  and directory called /home/drfrazar  to local directory called /backup, type the command as follows on local system:

$ rsync -ravz -e ssh root@host.hostworksnow.com:/home/drfrazar/    /backup