DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Using Cywin Programs like Rsynch with Windows Paths  (Read 7,588 times)

brahman

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 239
Using Cywin Programs like Rsynch with Windows Paths
« on: July 15, 2009, 03:53 PM »
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

Regards, Brahman
« Last Edit: July 15, 2009, 03:56 PM by brahman »

brahman

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 239
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #1 on: July 23, 2009, 02:21 PM »
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
Regards, Brahman

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #2 on: July 23, 2009, 02:55 PM »
Not sure if this works but did you try:

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

brahman

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 239
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #3 on: July 23, 2009, 03:36 PM »
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
Regards, Brahman
« Last Edit: July 23, 2009, 03:38 PM by brahman »

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #4 on: July 24, 2009, 08:05 AM »
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.

brahman

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 239
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #5 on: July 24, 2009, 03:16 PM »
Yes, looks good for synching between different machines.

For work on local folders I think Grsync is a better and easier tool.
Regards, Brahman

Original address: https://www.donationcoder.com/forum/index.php?topic=19185.0