[Dirvish] dirvish/rsync thru ssh

Nathan Hunsperger dirvish at hunsperger.com
Thu Jul 14 17:14:00 PDT 2005


You will notice that your by-hand rsync specified
"-i $HOME/cron/morpheus-rsync-key", whereas that is not specified when
running through dirvish.

By default, ssh only uses $HOME/.ssh/identity, $HOME/.ssh/id_rsa,
and $HOME/.ssh/id_dsa for identity files when authenticating with the
remote host.  The "-i <filename>" tells ssh to use the specified identity
file instead.

To fix this, you can add the morpheus-rsync-key identity file to your
local user's ssh config ($HOME/.ssh/config):

	IdentityFile $HOME/cron/morpheus-rsync-key

- Nathan

On Thu, Jul 14, 2005 at 05:11:49PM -0700, Mike Miller wrote:
> Ok, I obviously don't know what the hell I'm doing.
> I have data on a remote host I want to back up along
> with some local file systems.  I followed the directions
> at http://www.jdmz.net/ssh/ to set up ssh to allow for
> passwordless validation and access to the remote host,
> and I was able to successfully run the rsync command
> specified in these docs:
> rsync -avz -e "ssh -i $HOME/cron/morpheus-rsync-key" REMOTE_USER at REMOTE_HOST:/path/to/data /local/backup/path
> It worked!
> But I can't get it to work through dirvish.
> My /backup/web/dirvish/default.conf file says:
>    tree: /path/to/data
>    xdev: true
>    index: gzip
>    image-default: %Y-%m-%d
> and when I run 'dirvish --vault web --init'
> I get a password prompt. :-(
> (Yes, it works if I type the password).
> Looking at the /backup/web/2005-07-14/summary file, it
> tells me the rsync command being run is:
> rsync -vrltH --delete -pgo --stats -D --numeric-ids -x --exclude-from=/backup/web/2005-07-14/exclude REMOTE_USER at REMOTE_HOST:/path/to/data/ /backup/web/2005-07-14/tree
> What am I missing?  I'd really like to automate this.
> Thanks..............................................
> -Mike
> _______________________________________________
> Dirvish mailing list
> Dirvish at dirvish.org
> http://www.dirvish.org/mailman/listinfo/dirvish

More information about the Dirvish mailing list