SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Cygwin/Windows
Author Message
Post Cygwin/Windows 
Ben Escoto <bescoto < at > stanford.edu> writes:
To recap, if you're passing arguments to rdiff-backup via a windows
command line:

- All slashes after the first should be forward slashes.
- It's not case-sensitive before the first forward slash, and is
case-sensitive afterwards.

So if you're referring to, for example, C:\DFS\Root

- C:\DFS/Root is correct
- c:\dfs/Root is correct
- C:\DFS\Root is not correct
- c:\dfs/root is not correct


I think there is another way.
On the cygwin boxes I've played with,
there is an all-forward-slash way to refer to paths
from within the cygwin environment.

/cygdrive/c/ is the c drive,
/cygdrive/d/ the d drive, and so on.

/cygdrive and the drive letter are lower case,
and being unixy, I'm pretty sure everything is case sensitive,
so for example I exclude

/cygdrive/c/Documents and Settings/Grace Hopper/Local Settings/Temporary Internet Files

from backups to avoid backing up internet explorer cache files, and

/cygdrive/c/PAGEFILE.SYS

to avoid backing up the windows paging file.

This notation works at the very least for arguments to rsync from
within a bash script on windows 2k and xp machines using current cygwin
and the bash and rsync it supplies on an ntfs filesystem.

Post Cygwin/Windows 
Andrew K. Bressen wrote:

/cygdrive/c/ is the c drive,
/cygdrive/d/ the d drive, and so on.


if you look in the batch file I setup, we change the /cygdrive root to
be / this is a trick to avoid having to use /cygdrive and just be able
to use /
the mount command that comes with cygwin provides that magic.

Let me know if thats the problem :)

dave

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB