Adam Goryachev wrote at about 05:48:56 +1100 on Saturday, February 27, 2021:

 > >
 > >   > I was missing the ClientShareName2Path. I've added that in, but now I
 > >   > get another error:
 > >   >
 > >   > No such NTFS drive 'c:' skipping corresponding shadow setup...
 > >   >     'c' => /cygdrive/c/shadow/c-20210226-234449
 > >   > Eval return value: 1
 > >   >
 > >   > I'm thinking it might be a case sensitive issue, so am waiting for it 
 > > to
 > >   > finish before adjusting the config and retrying:
 > >   > $Conf{RsyncShareName} = [
 > >   >    'C'
 > >   > ];
 > >   > $Conf{ClientShareName2Path} = {
 > >   >          'C' => '/C',
 > >   > };
 > >   >
 > >   > ie, using all capital C instead of the lower case c. Or are there any
 > >   > other hints?
 > >   >
 > > It shouldn't be case sensitive.
 > > And personally, I think I use lower case 'c'
 > >
 > > Tell me what the following commands give:
 > >
 > > # cygpath -u C:
 > > # cygpath -u c:
 > >
 > > # ls $(cygpath -u C:)/..
 > > # ls $(cygpath -u c:)/..
 > >
 > > # mount -m | grep "^C: "
 > > # mount -m | grep "^c: "
 > >
 > Results:
 > 
 > $ cygpath -u C:
 > /cygdrive/c
 > $ cygpath -u c:
 > /cygdrive/c
 > $ ls $(cygpath -u C:)/..
 > c  d
 > $ ls $(cygpath -u c:)/..
 > c  d
 > $ mount -m | grep "^C: "
 > $ mount -m | grep "^c: "
 > $ mount -m
 > none /cygdrive cygdrive binary,posix=0,user 0 0
 > 
 > $ mount
 > C:/cygwin64/root/bin on /usr/bin type ntfs (binary,auto)
 > C:/cygwin64/root/lib on /usr/lib type ntfs (binary,auto)
 > C:/cygwin64/root on / type ntfs (binary,auto)
 > C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
 > D: on /cygdrive/d type udf (binary,posix=0,user,noumount,auto)
 > 
 > So all seem to work with lowercase or uppercase, but for some reason, 
 > neither works when from the script.
 > 
 > The only "non-standard" thing I've done is all the cygwin tools are 
 > installed to C:\cygwin64\root instead of the default which installs them 
 > to C:\cygwin64\
 > 
 > OK, from re-checking the error and the script, it looks like it's 
 > failing because mount -m doesn't show the c: ...
 > 

Yup.
On my machine, "mount -m" gives the letter drives...
You could try substituting the following

-if ! [ -d "$(cygpath -u ${I}:)" ] || ! grep -qE "^${I^^}: \S+ ntfs " <(mount 
-m); then
+if ! [ -d "$(cygpath -u ${I}:)" ] || ! grep -qE "^${I^^}: on \S+ type ntfs " 
<(mount); then



_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to