public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* RE:  [gentoo-user] rsync via ssh
@ 2007-11-03 21:06 Richard Ruth
  2007-11-04 14:54 ` Roger Mason
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Ruth @ 2007-11-03 21:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 498 bytes --]


Try adding "-e ssh" to your rsync command.
Search for "-e" in the rsync man page for an example.


=======================

This is the crontab entry (in rmason's crontab):

0,15,30,45 * * * *      rmason /usr/bin/rsync -av /home/rmason backup_machine:mymachine_rmason
I have passwordless ssh between mymachine and backup_machine and the
rsync command in the crontab runs perfectly from the command line.

Does someone know what else needs to be done to get this (seemingly
simple!) task to work?

[-- Attachment #2: Type: text/html, Size: 554 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [gentoo-user] rsync via ssh
@ 2007-11-03 20:36 Roger Mason
  2007-11-04 15:24 ` Dirk Heinrichs
  2007-11-04 23:40 ` Shawn Haggett
  0 siblings, 2 replies; 15+ messages in thread
From: Roger Mason @ 2007-11-03 20:36 UTC (permalink / raw
  To: gentoo-user

Hello,

I'm trying to use rsync to back up my home directory on "mymachine" to another
machine (backup_machine) using a cron job.

This is the crontab entry (in rmason's crontab):

0,15,30,45 * * * *      rmason /usr/bin/rsync -av /home/rmason backup_machine:mymachine_rmason

The logs on backup_machine show entries like this when the cron job runs:

Nov  3 17:30:06 backup_machine sshd[22048]: error: PAM: Authentication failure for rmason from mymachine.esd.mun.ca
Nov  3 17:30:06 backup_machine sshd(pam_unix)[22052]: authentication failure;
     logname= uid=0 euid=0 tty=ssh ruser= rhost=mymachine.esd.mun.ca
     user=rmason

I have passwordless ssh between mymachine and backup_machine and the
rsync command in the crontab runs perfectly from the command line.

Does someone know what else needs to be done to get this (seemingly
simple!) task to work?

Many thanks,
Roger
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-11-05 11:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-03 21:06 [gentoo-user] rsync via ssh Richard Ruth
2007-11-04 14:54 ` Roger Mason
2007-11-04 17:59   ` Steve Dommett
2007-11-04 18:46     ` Roger Mason
2007-11-04 19:04       ` Steve Dommett
2007-11-04 18:13   ` Ralph Slooten
2007-11-04 18:50     ` Roger Mason
2007-11-04 19:07     ` Neil Walker
  -- strict thread matches above, loose matches on Subject: below --
2007-11-03 20:36 Roger Mason
2007-11-04 15:24 ` Dirk Heinrichs
2007-11-04 18:44   ` Roger Mason
2007-11-04 23:40 ` Shawn Haggett
2007-11-05  0:43   ` Steve Dommett
2007-11-05 11:04   ` Roger Mason
2007-11-05 11:38     ` W.Kenworthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox