This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: using rsync in a sceduled script
- From: "Brendon Baumgartner" <brendon at brendon dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 13 Nov 2003 15:06:07 -0800
- Subject: RE: using rsync in a sceduled script
> -----Original Message-----
> From: Brendon Baumgartner [mailto:brendon@brendon.com]
> Sent: Thursday, November 13, 2003 1:36 PM
> To: 'cygwin@cygwin.com'
> Subject: using rsync in a sceduled script
>
> I have a very odd problem.
>
> I'm using rsync 2.5.6 in a bash script that is scheduled to run using
> windows XP scheduler.
>
> Rsync works perfectly everytime from the command line, but sometimes after
> the rsync operation completes when it is run using a script/scheduler, I
> get this error and rsync sits running (hung) till I manually kill it.
>
> rsync error: syntax or usage error (code 1) at /tmp/rsync-
> 2.5.6/main.c(1045)
>
> I logged stdout and stderr from the script, and here is what it looks
> like:
> receiving file list ... done
> wrote 97 bytes read 1569 bytes 175.37 bytes/sec
> total size is 1441861 speedup is 865.46
> rsync error: syntax or usage error (code 1) at /tmp/rsync-
> 2.5.6/main.c(1045)
>
> Is it a bug? Is it me?
I've fought this for awhile now. I can't figure it out. I copied the script
to a linux machine and it works flawlessly, same rsync server. The command
that is the root of all evil (my problem, in cygwin) :
/usr/bin/rsync -qaz --partial --delete --timeout=4 \
rsync://server.xyz.com/o/test/ /cygdrive/d/remote/backup.current/o/
-Brendon
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/