jcadima
8/29/2015 - 4:59 PM

Synchronize a Local file/directory TO a remote machine via SSH

Synchronize a Local file/directory TO a remote machine via SSH


$ rsync -ravz -e ssh /opt/lampp/htdocs/mobile    root@server:/home/smiles/m

using / on the source dir copy/syncs all files,
removing / from source copies the directory name and all files