Welcome Guest.   Make a donation to an author on the site September 01, 2014, 08:58:27 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Using Cywin Programs like Rsynch with Windows Paths  (Read 2392 times)
brahman
Supporting Member
**
Posts: 132


View Profile Give some DonationCredits to this forum member
« on: July 15, 2009, 10:53:30 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!? Sad

Regards,

Brahman

« Last Edit: July 15, 2009, 10:56:22 AM by brahman » Logged

Regards, Brahman
brahman
Supporting Member
**
Posts: 132


View Profile Give some DonationCredits to this forum member
« Reply #1 on: July 23, 2009, 09:21:44 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
Logged

Regards, Brahman
justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: July 23, 2009, 09:55:04 AM »

Not sure if this works but did you try:

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

brahman
Supporting Member
**
Posts: 132


View Profile Give some DonationCredits to this forum member
« Reply #3 on: July 23, 2009, 10:36:41 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. smiley

Regards,

Brahman
« Last Edit: July 23, 2009, 10:38:50 AM by brahman » Logged

Regards, Brahman
justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: July 24, 2009, 03:05:17 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.
Logged

brahman
Supporting Member
**
Posts: 132


View Profile Give some DonationCredits to this forum member
« Reply #5 on: July 24, 2009, 10:16:54 AM »

Yes, looks good for synching between different machines.

For work on local folders I think Grsync is a better and easier tool.
Logged

Regards, Brahman
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.028s | Server load: 0.03 ]