ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Using Cywin Programs like Rsynch with Windows Paths

(1/2) > >>

brahman:
Hi,

been trying for a while now to use windows paths with rsynch and the like (cygdrive versions).

F.e. if I want to duplicate my hard link structure from z: to c: like this:

rsync.exe -aHti /cygdrive/z /cygdrive/c

But it does not work - it copies from z: to c:\z\ and not to c:\ (root).

Neither does rsync.exe -aHti /cygdrive/z /cygdrive/c/ - so which command line to use?

Similar problems with path names that contain spaces.

Can anybody help - my linux is really weak!? :(

Regards,

Brahman

brahman:
OK,

to partially answer my own question (for people that may have the same problem):

a slash (/) is needed after z like this:

rsync.exe -aHti /cygdrive/z/ /cygdrive/c/

But I still do not know how to handle pathnames that contain spaces.

Any ideas?

Regards,

Brahman

justice:
Not sure if this works but did you try:

rsync.exe -aHti "/cygdrive/z/" "/cygdrive/c/"

brahman:
Hm,

I feel silly - could have sworn I tried that ...

But you were right, f.e.:

rsync.exe -aHti "/cygdrive/c/Program Files/" "/cygdrive/p/Programs/"

works on paths that contain spaces and the result is a duplication of the hard link structure with rsynch from c:\program files\ to p:\programs.

Case solved.

Thank you. :)

Regards,

Brahman

justice:
You can also try DeltaCopy it has more of a GUI and uses more integrated windows features but uses rsync cygwin under the hood. Not tried it myself yet but it looks good.

Navigation

[0] Message Index

[#] Next page

Go to full version