> First, thanks for doing this.
>
> I've had the original post bookmarked for quite some time (years, it
> seems)
> with plans to implement, and this simplifies the process quite a bit.
>  Performance is much better than rsync-over-autofs-smb (for any number of
> reasons).
>
> 5) I got a passing error message from the postusercmd.sh at one stage, and
>> would suggest the following change:
>>
>> if [ ! -z $xferOK ] && [ $xferOK-eq 1 ]; then
>> Basically, if xferOK is not set, then [ $xferOK-eq 1 ] generates an
>> error
>> (and does not match), with my change it will not generate an error, and
>> will still not match.
>>
>>
> I ran into that error "postusercmd.sh: line 10: [: -eq: unary operator
> expected" as well - even on successful runs.  It looks like $xferOK is
> never declared, but is just passed in.
>
>  postusercmd.sh
>
>> BOX=$1
>
> *XFEROK=$2*
>> $WINEXE -U $UNAME -W $WRKGRP --password=$PWD //$BOX 'cmd /c echo '1' >
>> c:\backuppc\wake.up' <&-
>> echo "Rsync and shadow copy unloaded"
>> if [ *$XFEROK* -eq 1 ]; then
>>    if [ -f $WOLDIR/$BOX.state ]; then
>>       read wasoff < $WOLDIR/$BOX.state
>>       echo -n "State before backup: "
>
>
>
> Thanks for all your work on this!
>
> -Kris Lou

Not only are you exactly correct, but your fix is exactly what I left out
when I posted it the first time (I apparently deleted that line and hadn't
noticed.)  The client side hasn't changed, but I'm updating the scripts
with the fixes this week, and will have it posted as soon as I do.

Thanks!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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