usermail wrote at about 20:48:44 +1000 on Thursday, July 2, 2020:
 > On 30/6/20 2:51 pm, backu...@kosowsky.org wrote:
 > Wow great work! This would be fantastic functionality!
 > I copied it into my client .pl file but i dont know if ive stuffed it up?
 > My XferLOG starts like this:
 > 
 > XferLOG file /var/lib/backuppc/pc/charlotte/XferLOG.71.z created 2020-07-02 
 > 12:00:00
 > Backup prep: type = incr, case = 4, inPlace = 0, doDuplicate = 0, newBkupNum 
 > = 71, newBkupIdx = 7, lastBkupNum = 70, lastBkupIdx = 6 (FillCycle = 0, 
 > noFillCnt = 5)
 > Executing DumpPreUserCmd: &{sub {
 >         my $timestamp = "20200702-120000";
 >         my $shadowdir = "/cygdrive/c/shadow/";
 >         my $shadows = "";
 > 
 >         my $bashscript = "function\ errortrap\ \ \{\ #NOTE:\ Trap\ on\ 
 > error:\ unwind\ shadows\ and\ exit\ 1.\
 > \ \ echo\ \"ERROR\ setting\ up\ shadows...\"\;\
 > \ \ \ \ #First\ delete\ any\ partially\ created\ shadows\
 > \ \ if\ \[\ -n\ \"\$SHADOWID\"\ \]\;\ then\
 > \ \ \ \ \ \ unset\ ERROR\;\
 > \ \ \ \ \ \ \(vssadmin\ delete\ shadows\ /shadow=\$SHADOWID\ /quiet\ \|\|\ 
 > ERROR=\"ERROR\ \"\)\ \|\ tail\ +4\;\      \       \       \ \ \ \ \ \
 > \ \ \ \ \ \ echo\ \"\ \ \ \$\{ERROR\}Deleting\ shadow\ copy\ for\ 
 > \'\$\{I\^\^\}:\'\ \$SHADOWID\"\;\
 > \ \ fi\
 > \ \ if\ \[\ -n\ \"\$SHADOWLINK\"\ \]\;\ then\
 > \ \ \ \ \ \ unset\ ERROR\;\
 > \ \ \ \ \ \ cmd\ /c\ rmdir\ \$SHADOWLINK\ \|\|\ ERROR=\"ERROR\ \"\;\
 > \ \ \ \ \ \ echo\ \"\ \ \ \$\{ERROR\}Deleting\ shadow\ link\ for\ 
 > \'\$\{I\^\^\}:\'\ \$SHADOWLINK\"\;\
 > \ \ fi\
 > 
 > The same on the client config page, is this likely an encoding or copy paste 
 > issue?

The backslashes are all painfully necessary to 'escape' variables,
special characters, and white space when passing to the shaell
> 
 > Second question, I dont use cygwin I use deltacopy (basically rsync compiled 
 > for windows I think)
 > and my RsyncShareName is /
 > I dont know perl but it looks like you trim the last slash off of $cygdrive, 
 > so will it be possible to
 > set $cygdrive to /

Yes. Or just set $cygdrive="";
Having this set wrong would explain why it is not automatically
finding your drive letters :)

> 
 > Thanks again for sharing your script,
 > Dean
 > 
 > 
 > 
 > 
 > _______________________________________________
 > BackupPC-users mailing list
 > BackupPC-users@lists.sourceforge.net
 > List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
 > Wiki:    http://backuppc.wiki.sourceforge.net
 > Project: http://backuppc.sourceforge.net/


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

Reply via email to