Easy Rsync Over SSH
By: Keith Watanabe
Published On: 5-11-2004
I've always had problems remembering the commands to do an rsync over ssh. Here's the quickie: rsync -a -e "ssh -i $SSHKEY" $FILE $DEST $SSHKEY: the pay to your private sshkey $FILE: the files you want to send $DEST: your destination. example: rsync -a -e "/usr/bin/ssh -i $HOME/.ssh/id_dsa" /home/mydir/datafile.txt me@remoteserver:. This will copy the file datafile.txt to your remote server. Make sure you have the sshkey generated (will put up another FAQ for that).
Post Comment
Trackbacks: (Trackback URL)
No Comments Posted Yet