This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: colons with rsync


On Wed, 11 Jun 2003, Ben Smith wrote:

> I am trying to rsync from a SCO box to a Windows 2000 server as a
> (temporary) backup while I build a more suitable Linux backup server.
> Rsync on SCO reports errors such as the following:
>
> rsync: recv_generator: mkdir
> "var/opt/K/SCO/MMDF/2.43.3b/spool/mail/:saved": No such file or
> directory (2)
> stat var/opt/K/SCO/MMDF/2.43.3b/spool/mail/:saved : No such file or
> directory
>
> I know this has to do with the colons in the directory/file names.  All
> of the files that have this error have colons in the path somewhere.
>
> They are both a recent version, 2.5.6  protocol version 26.  I guess
> another snafu is that my cygwin install is very basic, cygwin-lite with
> ssh and rsync.
>
> Does rsync convert between Windows/Unix filenames automatically in
> instances such as this?  Is there a way to use cygpath to get around
> this limitation?  Thanks in advance for your help.
>
> -Ben Smith

Ben,

Windows filenames cannot contain ':', so there is no way around this
limitation in Cygwin, since it uses Windows filenames.

I did manage to create a file called ':saved' (on NTFS).  It didn't show
up in directory listings (simple 'ls'), but did in an explicit 'ls
:saved'.  I also could write to it and read from it, so I'm not sure
exactly where or how the file was created ('mv :saved ./Zsaved' said "mv:
cannot move `:saved' to a subdirectory of itself, `./Zsaved'", so I'm
guessing Win2k got pretty confused).  'rm :saved' worked, though.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]