topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 4:52 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Using Cywin Programs like Rsynch with Windows Paths  (Read 5644 times)

brahman

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 239
    • View Profile
    • Donate to Member
Using Cywin Programs like Rsynch with Windows Paths
« on: July 15, 2009, 10:53 AM »
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, 10:56 AM by brahman »

brahman

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 239
    • View Profile
    • Donate to Member
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #1 on: July 23, 2009, 09:21 AM »
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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #2 on: July 23, 2009, 09:55 AM »
Not sure if this works but did you try:

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

brahman

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 239
    • View Profile
    • Donate to Member
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #3 on: July 23, 2009, 10:36 AM »
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, 10:38 AM by brahman »

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #4 on: July 24, 2009, 03: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
    • View Profile
    • Donate to Member
Re: Using Cywin Programs like Rsynch with Windows Paths
« Reply #5 on: July 24, 2009, 10:16 AM »
Yes, looks good for synching between different machines.

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