Trouble rsyncing from Windows to Unix
jw schultz
jw at pegasys.ws
Tue Jun 17 12:10:57 EST 2003
On Mon, Jun 16, 2003 at 08:49:20PM -0500, Trey Nolen wrote:
>
> You may have two points of trouble. First, you need to specify something to
> get it to be recursive. I use -a, which covers most everything. I also use R
> for relative paths. I think that you might also have trouble with the
I doubt he wants relative paths which would result in
/raid/backups/dpllaptop/cygdrive/d/user_dpl sans preceding
cd.
> "/usr/bin/ssh -l dplbackup" part. Try this:
>
> C:\cygwin\bin\rsync.exe -aR -e c:\cygwin\bin\ssh.exe -l dplbackup
> /cygdrive/d/user_dpl electric:/raid/backups/dpllaptop
>
> OR, if you don't do c:\cygwin\bin\ , you might try
> /cygdrive/c/cygwin/bin/ssh.exe
>
> I have never been able to get the -l command to work in Windows, though.
> Instead, you might try:
Without quoting ssh won't see the -l dplbackup arguments.
> C:\cygwin\bin\rsync.exe -aR -e c:\cygwin\bin\ssh.exe /cygdrive/d/user_dpl
> dplbackup at electric:/raid/backups/dpllaptop
This is the preferred way to specify a user name on remote
server but with quotes as he does it is correct provided
cygwin (via the dlls) sees /usr/bin/ssh.
> > I'm using Cygwin on Windows which I just downloaded and I'm trying to set
> > up an rsync backup. I'm using an .bat script to copy the files, but it
> > gives the error message:
> >
> > Skipping directory /cygdrive/d/user_dpl
> >
> >
> > Following is the script:
> >
> >
> > @echo off
> >
> > C:
> > C:\cygwin\bin\rsync.exe -e "/usr/bin/ssh -l dplbackup"
> /cygdrive/d/user_dpl electric:/raid/backups/dpllaptop
> >
> >
> > I'm confused, since it should not be skipping anything - I no excludes at
> > all.
> >
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list