Re: [gentoo-user] rsync via ssh [solved]

2007-11-05 Thread Roger Mason
"W.Kenworthy" <[EMAIL PROTECTED]> writes: >> > Roger Mason wrote: >> >> 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 >> >

Re: [gentoo-user] rsync via ssh

2007-11-05 Thread W.Kenworthy
On Mon, 2007-11-05 at 07:34 -0330, Roger Mason wrote: > Shawn Haggett <[EMAIL PROTECTED]> writes: > > > Roger Mason wrote: > >> 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

Re: [gentoo-user] rsync via ssh

2007-11-05 Thread Roger Mason
Shawn Haggett <[EMAIL PROTECTED]> writes: > Roger Mason wrote: >> 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

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Steve Dommett
On Sunday 04 November 2007, Shawn Haggett wrote: > Roger Mason wrote: > How have you setup the passwordless ssh? If your using keys with the ssh > keyagent, then when the command is run in cron it wouldn't know where to > find your ssh-agent... > > Shawn I use a use a key with no password without

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Shawn Haggett
Roger Mason wrote: 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? How have you setup the passwordless ssh? If you

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Neil Walker
Please, please, please do not top-post. :( Be lucky, Neil -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Steve Dommett
On Sunday 04 November 2007, Roger Mason wrote: > Did you have to do anything special to make it work from cron? No, but then the crontab entry is simply: > 47 4 * * * /root/backup.sh The backup.sh is essentially: rdiff-backup \ --print-statistics \ --exclude /mnt \ --exclude /dev \ --ex

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Roger Mason
Hi Ralph, Ralph Slooten <[EMAIL PROTECTED]> writes: > I have done a similar thing at work, except what I do is first create > an ssh tunnel, then rsync to the locally listening port. Works > perfectly. In my setup the remote server is running an SSH server > which is not accessible directly. Mayb

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Roger Mason
Hi Steve, Steve Dommett <[EMAIL PROTECTED]> writes: > On Sunday 04 November 2007, Roger Mason wrote: >> Thanks for the reply. Unfortunately that did not work, the same error >> ocurs. > This may not be applicable, but I run rdiff-backup from cron on many machine > with no problems at all. It u

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Roger Mason
Hi Dirk, Dirk Heinrichs <[EMAIL PROTECTED]> writes: > Am Samstag, 3. November 2007 schrieb Roger Mason: >> Hello, >> >> I'm trying to use rsync to back up my home directory on "mymachine" to >> another machine (backup_machine) using a cron job. > > Which cron? vixie-cron >> This is the crontab

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Ralph Slooten
I have done a similar thing at work, except what I do is first create an ssh tunnel, then rsync to the locally listening port. Works perfectly. In my setup the remote server is running an SSH server which is not accessible directly. Maybe this will help you. #!/bin/bash SSL_COMMAND="ssh -p 22

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Steve Dommett
On Sunday 04 November 2007, Roger Mason wrote: > Thanks for the reply. Unfortunately that did not work, the same error > ocurs. This may not be applicable, but I run rdiff-backup from cron on many machine with no problems at all. It uses librsync, so may be of interest to you. http://rdiff-backu

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Dirk Heinrichs
Am Samstag, 3. November 2007 schrieb Roger Mason: > Hello, > > I'm trying to use rsync to back up my home directory on "mymachine" to > another machine (backup_machine) using a cron job. Which cron? > This is the crontab entry (in rmason's crontab): > > 0,15,30,45 * * * * rmason /usr/bin/rsy

Re: [gentoo-user] rsync via ssh

2007-11-04 Thread Roger Mason
Hi Richard, Richard Ruth <[EMAIL PROTECTED]> writes: > 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

RE: [gentoo-user] rsync via ssh

2007-11-03 Thread Richard Ruth
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 betw