PDA

View Full Version : [SOLVED] How to point rsync to an id_rsa key


victorbrca
November 15th, 2007, 12:26 PM
Hi there,


I want to use the "-i" ssh option to point to an id_rsa key when backing up with rsync. Is there a way of doing this?

I have 4 diferent id_rsa files that I use to connect to my different servers.

The backup would eventually be added to crontab.


Thanks,

Vic.

jtc
November 15th, 2007, 12:43 PM
You want to use the -e switch to specify a more detailed remote shell.


rsync -e "ssh -i /path/to/rsa_key" ...

MJN
November 15th, 2007, 12:45 PM
<Post removed - JTC beat me to it! :)>

victorbrca
November 15th, 2007, 12:54 PM
Thanks !!! :)


Vic.