UNC path issue

2005-02-10 Thread Trey Nolen
I'm using rsync and cygwin to do some backups from Windows machines.  I have 
been doing something along these lines:

c:\cygwin\bin\rsync -aR -e 
c:\cygwin\bin\ssh.exe --numeric-ids --delete --delete-after --verbose --ignore-errors 
--exclude-from=/cygdrive/c/offsitebackup/excludes.txt /cygdrive/c/ 
[EMAIL PROTECTED]

This all worked well until I had to do backups of several mapped drives from 
one machine.  I specified those drives with something like /cygdrive/f/ for 
the F: drive and that worked OK.  The problem is, one day someone logged out 
of the server and the maps went away. When the backup job ran, it deleted 
all the files in the backup because the mapped drives weren't there anymore. 
So, I decided to use UNC paths since they exist all the time, but it didn't 
work and I found in the archives that rsync considers // the same as /. 
There was a suggestion to change directory first and then run the job, but I 
don't think that will work in this case.  Does anyone have an idea of how to 
backup remote machines using cygwin without being logged in?

Trey Nolen

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: remote files not being deleted

2004-02-26 Thread Trey Nolen
>
> It may be that you are running out of memory.  --delete
> causes the a second file list (about 100bytes/file) to be
> created contianing all the files existing on the receiver.
> Combined with --delete-after this happens at the time when
> the memory usage is at its greatest due to copy-on-write and
> fragmentation.


Although it looks like my problem was caused by a path problem with 2.5.6
(I need to specify /. instead of / for the source), I'm interested in this
memory issue.  Is this file list created on the client side or the server
side?

Trey Nolen

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: remote files not being deleted

2004-02-26 Thread Trey Nolen
> 
> That lack of deletion is fixed in 2.6.0.  You can work around the
> problem by either getting rid of the -R option (you don't need it in
> that particular command) or by specifying "/." instead of "/" as the
> source of your copy.
> 


That did the trick! Thanks!


Trey Nolen

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


remote files not being deleted

2004-02-25 Thread Trey Nolen
I've got an issue with remote files being deleted after the local file has
been deleted. For some reason, this isn't happening.  I'm running rsync
2.5.6 protocol 26 (yes, I know there are newer versions, but logistics
dictates that I can't upgrade right now).  I have used
the --delete, --delete-after, and --ignore-errors options in all sorts of
combinations.

An example of the calling command follows:
rsync -avR -e
sh --numeric-ids --delete --progress  --delete-after--ignore-errors --exclud
e /proc/ / [EMAIL PROTECTED]:/

OK, the weird part is that it will delete files if I do a relatively small
part of the file system (say /root/ for instance).  I'm not sure what the
limit is on where it quits working.  Is this something that's been seen
before? I looked through the archives but didn't find anything relating to
this.

Any suggestions?  I guess I could run multiple jobs and do each directory
separately, but that is less than optimal.  This is occurring on SEVERAL
computers.  The client and server side are both Linux with ext3 filesystems.
I have some client machines running rsync under Cywin, but I haven't checked
to see if they have the issue yet.


TIA

Trey Nolen


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Trouble rsyncing from Windows to Unix

2003-06-16 Thread Trey Nolen

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
"/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:
C:\cygwin\bin\rsync.exe -aR -e c:\cygwin\bin\ssh.exe /cygdrive/d/user_dpl
[EMAIL PROTECTED]:/raid/backups/dpllaptop


Trey Nolen


>
> 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.
>
> Paul
>
>
>
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync and cygwin

2003-06-07 Thread Trey Nolen
HmmThis backup server is handling backup jobs from about a dozen other
machines -- all but three are Linux. The other three are Windows 2000
servers running Cygwin.  Two of those are not working (giving the error).
The backup machine has other duties, too, and has not had any issues. The
uptime is great, and the performance has been fine.

One other thing that might be important:  This error happens *JUST* after
building the file list. It is like the transfer doesn't work at all. It
errors immediately as the transfer starts.

Trey Nolen


>> The error is this:
>>
>> Invalid file index  (count=)
>> rsync error: protocol incompatibility (code 2) at sender.c (135)
>>

> That error indicates something is seriously wrong at the
> communications level.  Given an ssh over TCP connection i'd
> rule out the network layer.  That leaves internal data
> corruption.  I'd start by questioning the integrety of the
> common point of failure--the backup server.  Check the logs
> for errors, run memtest, etc.
>
>

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync and cygwin

2003-06-07 Thread Trey Nolen
HmmThis backup server is handling backup jobs from about a dozen other
machines -- all but three are Linux. The other three are Windows 2000
servers running Cygwin.  Two of those are not working (giving the error).
The backup machine has other duties, too, and has not had any issues. The
uptime is great, and the performance has been fine.

One other thing that might be important:  This error happens *JUST* after
building the file list. It is like the transfer doesn't work at all. It
errors immediately as the transfer starts.

Trey Nolen


>> The error is this:
>>
>> Invalid file index  (count=)
>> rsync error: protocol incompatibility (code 2) at sender.c (135)
>>

> That error indicates something is seriously wrong at the
> communications level.  Given an ssh over TCP connection i'd
> rule out the network layer.  That leaves internal data
> corruption.  I'd start by questioning the integrety of the
> common point of failure--the backup server.  Check the logs
> for errors, run memtest, etc.
>
>

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


rsync and cygwin

2003-06-07 Thread Trey Nolen
I had sent a message to the list earlier this week detailing an error
message I am getting using rsync on Cygwin on Windows 2000.  I have now
duplicated the problem on another windows 2000 server. I have a third server
on which the process works, so I don't really know what is going wrong.  All
three servers are rsyncing to the same Linux server.  Below is the original
question. Any help would be appreciated.

The error is this:

Invalid file index  (count=)
rsync error: protocol incompatibility (code 2) at sender.c (135)


The command line I'm using to start this is:
c:\cygwin\bin\rsync -aR -e
c\cygwin\bin\ssh.exe -v --numeric-ids --exclude-from=/cydrive/c/ssh/rsync-ex
cludes.txt --dry-run --delete --delete-after /cygdrive/c root at
backupserver:/

rsync-excludes.txt  contains things like:
-PEACHW/
-WINPOINT/
-PNTDATA/
:
:


At first I thought that maybe my file list was getting too long, but I
changed my excludes so that I had a file list that I knew was short enough
and I still get the error. I get the error on different files depending on
what I have excluded, but if I run the same command twice,  I get the error
in the exact same spot.  Thanks in advance for any help.



-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


rsync and cygwin part II

2003-06-05 Thread Trey Nolen
OK, I had emailed yesterday about an issue backing up a W2K machine using
rsync under Cygwin. I was having trouble backing up the root directory, and
I'm happy to say that the suggestion of using /cygdrive/c seems to have
worked!

Unfortunately, now I'm getting another error.  The error is this:

Invalid file index  (count=)
rsync error: protocol incompatibility (code 2) at sender.c (135)


The command line I'm using to start this is:
c:\cygwin\bin\rsync -aR -e
c\cygwin\bin\ssh.exe -v --numeric-ids --exclude-from=/cydrive/c/ssh/rsync-ex
cludes.txt --dry-run --delete --delete-after /cygdrive/c [EMAIL PROTECTED]:/

rsync-excludes.txt  contains things like:
-PEACHW/
-WINPOINT/
-PNTDATA/
:
:


At first I thought that maybe my file list was getting too long, but I
changed my excludes so that I had a file list that I knew was short enough
and I still get the error. I get the error on different files depending on
what I have excluded, but if I run the same command twice,  I get the error
in the exact same spot.  Thanks in advance for any help.

Trey Nolen



-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: [rsync] Re: rsync and cygwin

2003-06-04 Thread Trey Nolen
I, too, tried it after it was mentioned and it worked for me as well. I
think this is going to be my solution. I haven't got everything working yet,
but will try to finish it up later today.  I was able to successfully build
a good file list from a regular CMD prompt, so I called it a night. :-)   I
thank everyone for their help!

Trey Nolen



> Michael,
>
> While I frequently run scheduled bash shell scripts via a bash.bat file as
> you describe, I don't think it is necessary here... I think Trey can run
> rsync.exe directly if he really wants to.
>
> I tested running 'ls /cygdrive' from within a cmd.exe dos prompt and it
> worked...
>
> Microsoft Windows 2000 [Version 5.00.2195]
> (C) Copyright 1985-2000 Microsoft Corp.
>
> C:\>c:\tools\cygwin\bin\ls /cygdrive/
> c  e  f  n  s
>
> C:\>c:\tools\cygwin\bin\ls /cygdrive/c
> AUTOEXEC.BATMSDOS.SYS
>
> (I'm assuming rsync would work similarly to ls)
>
> While I don't know the cygwin architecture details, it looks like the
> /cygdrive functionality is a part of cygwin.dll and can be used without a
> parent bash shell.
>
>
> Later,
>   Bert
>
> --On Tuesday, June 03, 2003 8:45 PM -0500 Michael Hipp <[EMAIL PROTECTED]>
> wrote:
>
> > Trey Nolen wrote:
> >
> >> But can you do that if you are not running it from the Cygwin prompt?
I
> >> didn't do that because we were starting it with the scheduler. Will
that
> >> still work?
> >>
> > Yes. Write a small 'myjob.bat' file with something like this in it:
> > 
> > @echo off
> > C:
> > chdir C:\cygwin\bin
> > bash --login -i -c "~/myscript.sh"
> > 
> >
> > Use scheduler to run 'myjob.bat'. It will execute 'myscript.sh' under
> > bash and from there you can do anything bash can do.
> >
> > Michael
> >
> > --
> > To unsubscribe or change options:
> > http://lists.samba.org/mailman/listinfo/rsync Before posting, read:
> > http://www.catb.org/~esr/faqs/smart-questions.html
> >
> >
>
>
>
>
>


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: [rsync] Re: rsync and cygwin

2003-06-04 Thread Trey Nolen
I, too, tried it after it was mentioned and it worked for me as well. I
think this is going to be my solution. I haven't got everything working yet,
but will try to finish it up later today.  I was able to successfully build
a good file list from a regular CMD prompt, so I called it a night. :-)   I
thank everyone for their help!

Trey Nolen



> Michael,
>
> While I frequently run scheduled bash shell scripts via a bash.bat file as
> you describe, I don't think it is necessary here... I think Trey can run
> rsync.exe directly if he really wants to.
>
> I tested running 'ls /cygdrive' from within a cmd.exe dos prompt and it
> worked...
>
> Microsoft Windows 2000 [Version 5.00.2195]
> (C) Copyright 1985-2000 Microsoft Corp.
>
> C:\>c:\tools\cygwin\bin\ls /cygdrive/
> c  e  f  n  s
>
> C:\>c:\tools\cygwin\bin\ls /cygdrive/c
> AUTOEXEC.BATMSDOS.SYS
>
> (I'm assuming rsync would work similarly to ls)
>
> While I don't know the cygwin architecture details, it looks like the
> /cygdrive functionality is a part of cygwin.dll and can be used without a
> parent bash shell.
>
>
> Later,
>   Bert
>
> --On Tuesday, June 03, 2003 8:45 PM -0500 Michael Hipp <[EMAIL PROTECTED]>
> wrote:
>
> > Trey Nolen wrote:
> >
> >> But can you do that if you are not running it from the Cygwin prompt?
I
> >> didn't do that because we were starting it with the scheduler. Will
that
> >> still work?
> >>
> > Yes. Write a small 'myjob.bat' file with something like this in it:
> > 
> > @echo off
> > C:
> > chdir C:\cygwin\bin
> > bash --login -i -c "~/myscript.sh"
> > 
> >
> > Use scheduler to run 'myjob.bat'. It will execute 'myscript.sh' under
> > bash and from there you can do anything bash can do.
> >
> > Michael
> >
> > --
> > To unsubscribe or change options:
> > http://lists.samba.org/mailman/listinfo/rsync Before posting, read:
> > http://www.catb.org/~esr/faqs/smart-questions.html
> >
> >
>
>
>
>
>


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: [rsync@b] Re: rsync and cygwin

2003-06-04 Thread Trey Nolen



> I think that a key part of the answer is to use /cygdrive/c instead of /
or
> \ to identify c:\ in a cygwin environment.
>

But can you do that if you are not running it from the Cygwin prompt?   I
didn't do that because we were starting it with the scheduler. Will that
still work?

Trey Nolen



-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync and cygwin

2003-06-04 Thread Trey Nolen
That is with a
- /*
at the end of the excludes file (I was trying to exclude everything else).
But, when that is removed, it matches everything under the cygwin directory
(again matching cygwin's root as / ) and doesn't see the rest of our data.

Trey Nolen




> OK, sorry about that.  When I do that, I get:
> building file list ...
> excluding directory / because of pattern /*
> done
> total: matches=0 tag_hits=0 false_alarms=0 data=0
>
> Trey Nolen
>
> - Original Message -
> From: "jw schultz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 03, 2003 6:44 PM
> Subject: Re: rsync and cygwin
>
>
> > On Tue, Jun 03, 2003 at 06:34:42PM -0500, Trey Nolen wrote:
> > > If we do that, it backs up the cygwin directory (c:\cygwin being the
> root of
> > > the cygwin install) and not the root of c: (i.e. C:\ ).
> >
> > I was refering to the exclude list, not the command line.
> > In any case -vv will show you what patterns do match.
> >
> > >
> > > Trey Nolen
> > >
> > > - Original Message -
> > > From: "jw schultz" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, June 03, 2003 6:13 PM
> > > Subject: Re: rsync and cygwin
> > >
> > >
> > > > Try using slash instead of backslash.
> > > >
> > > > On Tue, Jun 03, 2003 at 06:04:50PM -0500, Trey Nolen wrote:
> > > > > Hi, I'm having some trouble using rsync on W2K under Cygwin. We
are
> > > using it
> > > > > to back up the W2K machine to a Linux machine. We are using the
> patched
> > > > > version of rsync 2.5.6 that allows it to run faster on NT/2K when
> > > > > calculating  the changes.  We can backup a directory without a
> problem,
> > > but
> > > > > in this case, we want to backup everything, so the directory we
are
> > > backing
> > > > > up is \.  We do not run rsync under a Cygwin bash prompt, and we
> > > schedule it
> > > > > with the scheduler to run automatically every night, but this
issue
> is
> > > the
> > > > > same even if we run the commands manually.  The following is the
> > > contents of
> > > > > a .bat file we are running with scheduler:
> > > > >
> > > > > c:\cygwin\bin\rsync -aR -e
> > > > >
> > >
>
c:\cygwin\bin\ssh.exe --verbose --exclude-from=c:\ssh\rsync-exclude.txt --nu
> > > > > meric-ids --delete --delete-after \ [EMAIL PROTECTED]:/
> > > > >
> > > > >
> > > > > I've also tried something like the following:
> > > > > c:\cygwin\bin\rsync -aR -e
> > > > >
> c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after \
> > > > > [EMAIL PROTECTED]:/
> > > > >
> > > > > In both cases, I get a lot of errors like the following:
> > > > > Building file list...
> > > > > readlink \/Borrower: No such file or directory
> > > > > readlink \/Data: No such file or directory
> > > > > :
> > > > > :
> > > > > IO error encountered - skipping file deletion
> > > > >
> > > > > It does one of the readlink lines for every file and directory in
> the
> > > root
> > > > > directory. Notice how it has a backslash and a forward slash on
each
> > > line.
> > > > > It seems like rsync is not handling the removal of the slashes
> > > properly??
> > > > > Now, if I do something like:
> > > > > c:\cygwin\bin\rsync -aR -e
> > > > >
> c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after
> > > \Data
> > > > > [EMAIL PROTECTED]:/
> > > > >
> > > > > It backs up the c:\Data directory just fine. Notice the only
> differenc
> > > here
> > > > > is that we are backing up \Data instead of just \.
> > > > >
> > > > > My rsync-exclude.txt file contains:
> > > > > + \Borrower
> > > > > + \Data
> > > > > :
> > > > > :
> > > > > for each directory and file in the root directory.
> > > > >
> > > > > It doesn't seem to matter what we list in the exclude file because
> the
> > > > > errors still list every file in the root directory no matter what
we
> > > have 

Re: rsync and cygwin

2003-06-04 Thread Trey Nolen
OK, sorry about that.  When I do that, I get:
building file list ...
excluding directory / because of pattern /*
done
total: matches=0 tag_hits=0 false_alarms=0 data=0

Trey Nolen

- Original Message -
From: "jw schultz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 6:44 PM
Subject: Re: rsync and cygwin


> On Tue, Jun 03, 2003 at 06:34:42PM -0500, Trey Nolen wrote:
> > If we do that, it backs up the cygwin directory (c:\cygwin being the
root of
> > the cygwin install) and not the root of c: (i.e. C:\ ).
>
> I was refering to the exclude list, not the command line.
> In any case -vv will show you what patterns do match.
>
> >
> > Trey Nolen
> >
> > - Original Message -
> > From: "jw schultz" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 03, 2003 6:13 PM
> > Subject: Re: rsync and cygwin
> >
> >
> > > Try using slash instead of backslash.
> > >
> > > On Tue, Jun 03, 2003 at 06:04:50PM -0500, Trey Nolen wrote:
> > > > Hi, I'm having some trouble using rsync on W2K under Cygwin. We are
> > using it
> > > > to back up the W2K machine to a Linux machine. We are using the
patched
> > > > version of rsync 2.5.6 that allows it to run faster on NT/2K when
> > > > calculating  the changes.  We can backup a directory without a
problem,
> > but
> > > > in this case, we want to backup everything, so the directory we are
> > backing
> > > > up is \.  We do not run rsync under a Cygwin bash prompt, and we
> > schedule it
> > > > with the scheduler to run automatically every night, but this issue
is
> > the
> > > > same even if we run the commands manually.  The following is the
> > contents of
> > > > a .bat file we are running with scheduler:
> > > >
> > > > c:\cygwin\bin\rsync -aR -e
> > > >
> >
c:\cygwin\bin\ssh.exe --verbose --exclude-from=c:\ssh\rsync-exclude.txt --nu
> > > > meric-ids --delete --delete-after \ [EMAIL PROTECTED]:/
> > > >
> > > >
> > > > I've also tried something like the following:
> > > > c:\cygwin\bin\rsync -aR -e
> > > >
c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after \
> > > > [EMAIL PROTECTED]:/
> > > >
> > > > In both cases, I get a lot of errors like the following:
> > > > Building file list...
> > > > readlink \/Borrower: No such file or directory
> > > > readlink \/Data: No such file or directory
> > > > :
> > > > :
> > > > IO error encountered - skipping file deletion
> > > >
> > > > It does one of the readlink lines for every file and directory in
the
> > root
> > > > directory. Notice how it has a backslash and a forward slash on each
> > line.
> > > > It seems like rsync is not handling the removal of the slashes
> > properly??
> > > > Now, if I do something like:
> > > > c:\cygwin\bin\rsync -aR -e
> > > >
c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after
> > \Data
> > > > [EMAIL PROTECTED]:/
> > > >
> > > > It backs up the c:\Data directory just fine. Notice the only
differenc
> > here
> > > > is that we are backing up \Data instead of just \.
> > > >
> > > > My rsync-exclude.txt file contains:
> > > > + \Borrower
> > > > + \Data
> > > > :
> > > > :
> > > > for each directory and file in the root directory.
> > > >
> > > > It doesn't seem to matter what we list in the exclude file because
the
> > > > errors still list every file in the root directory no matter what we
> > have in
> > > > the exclude file.
> > > >
> > > > I've looked through the archives, and found some similar issues,
like
> > the
> > > > one found here:
> > > >  http://lists.samba.org/pipermail/rsync/2003-March/010247.html  but
I
> > > > haven't been able to resolve this so far.
> > > >
> > > > Can anyone shed some light on this for me?
> > > >
> > > > Trey Nolen
> > > >
> > > >
> > > > --
> > > > To unsubscribe or change options:
> > http://lists.samba.org/mailman/listinfo/rsync
> > > > Before posting, read:
http://www.catb.org/~esr/faqs/smart-questions.html
> > > >
> &g

Re: rsync and cygwin

2003-06-04 Thread Trey Nolen
If we do that, it backs up the cygwin directory (c:\cygwin being the root of
the cygwin install) and not the root of c: (i.e. C:\ ).

Trey Nolen

- Original Message -
From: "jw schultz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 6:13 PM
Subject: Re: rsync and cygwin


> Try using slash instead of backslash.
>
> On Tue, Jun 03, 2003 at 06:04:50PM -0500, Trey Nolen wrote:
> > Hi, I'm having some trouble using rsync on W2K under Cygwin. We are
using it
> > to back up the W2K machine to a Linux machine. We are using the patched
> > version of rsync 2.5.6 that allows it to run faster on NT/2K when
> > calculating  the changes.  We can backup a directory without a problem,
but
> > in this case, we want to backup everything, so the directory we are
backing
> > up is \.  We do not run rsync under a Cygwin bash prompt, and we
schedule it
> > with the scheduler to run automatically every night, but this issue is
the
> > same even if we run the commands manually.  The following is the
contents of
> > a .bat file we are running with scheduler:
> >
> > c:\cygwin\bin\rsync -aR -e
> >
c:\cygwin\bin\ssh.exe --verbose --exclude-from=c:\ssh\rsync-exclude.txt --nu
> > meric-ids --delete --delete-after \ [EMAIL PROTECTED]:/
> >
> >
> > I've also tried something like the following:
> > c:\cygwin\bin\rsync -aR -e
> > c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after \
> > [EMAIL PROTECTED]:/
> >
> > In both cases, I get a lot of errors like the following:
> > Building file list...
> > readlink \/Borrower: No such file or directory
> > readlink \/Data: No such file or directory
> > :
> > :
> > IO error encountered - skipping file deletion
> >
> > It does one of the readlink lines for every file and directory in the
root
> > directory. Notice how it has a backslash and a forward slash on each
line.
> > It seems like rsync is not handling the removal of the slashes
properly??
> > Now, if I do something like:
> > c:\cygwin\bin\rsync -aR -e
> > c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after
\Data
> > [EMAIL PROTECTED]:/
> >
> > It backs up the c:\Data directory just fine. Notice the only differenc
here
> > is that we are backing up \Data instead of just \.
> >
> > My rsync-exclude.txt file contains:
> > + \Borrower
> > + \Data
> > :
> > :
> > for each directory and file in the root directory.
> >
> > It doesn't seem to matter what we list in the exclude file because the
> > errors still list every file in the root directory no matter what we
have in
> > the exclude file.
> >
> > I've looked through the archives, and found some similar issues, like
the
> > one found here:
> >  http://lists.samba.org/pipermail/rsync/2003-March/010247.html  but I
> > haven't been able to resolve this so far.
> >
> > Can anyone shed some light on this for me?
> >
> > Trey Nolen
> >
> >
> > --
> > To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
> >
>
> --
> 
> J.W. SchultzPegasystems Technologies
> email address: [EMAIL PROTECTED]
>
> Remember Cernan and Schmitt
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


rsync and cygwin

2003-06-04 Thread Trey Nolen
Hi, I'm having some trouble using rsync on W2K under Cygwin. We are using it
to back up the W2K machine to a Linux machine. We are using the patched
version of rsync 2.5.6 that allows it to run faster on NT/2K when
calculating  the changes.  We can backup a directory without a problem, but
in this case, we want to backup everything, so the directory we are backing
up is \.  We do not run rsync under a Cygwin bash prompt, and we schedule it
with the scheduler to run automatically every night, but this issue is the
same even if we run the commands manually.  The following is the contents of
a .bat file we are running with scheduler:

c:\cygwin\bin\rsync -aR -e
c:\cygwin\bin\ssh.exe --verbose --exclude-from=c:\ssh\rsync-exclude.txt --nu
meric-ids --delete --delete-after \ [EMAIL PROTECTED]:/


I've also tried something like the following:
c:\cygwin\bin\rsync -aR -e
c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after \
[EMAIL PROTECTED]:/

In both cases, I get a lot of errors like the following:
Building file list...
readlink \/Borrower: No such file or directory
readlink \/Data: No such file or directory
:
:
IO error encountered - skipping file deletion

It does one of the readlink lines for every file and directory in the root
directory. Notice how it has a backslash and a forward slash on each line.
It seems like rsync is not handling the removal of the slashes properly??
Now, if I do something like:
c:\cygwin\bin\rsync -aR -e
c:\cygwin\bin\ssh.exe --verbose  --numeric-ids --delete --delete-after \Data
[EMAIL PROTECTED]:/

It backs up the c:\Data directory just fine. Notice the only differenc here
is that we are backing up \Data instead of just \.

My rsync-exclude.txt file contains:
+ \Borrower
+ \Data
:
:
for each directory and file in the root directory.

It doesn't seem to matter what we list in the exclude file because the
errors still list every file in the root directory no matter what we have in
the exclude file.

I've looked through the archives, and found some similar issues, like the
one found here:
 http://lists.samba.org/pipermail/rsync/2003-March/010247.html  but I
haven't been able to resolve this so far.

Can anyone shed some light on this for me?

Trey Nolen


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html