On Fri, Nov 10, 2017 at 10:11 AM, Julian Zielke
<jzie...@next-level-integration.com> wrote:
> I’ve written a script which should be run after each processed share of a
> host.
>
> So I’ve tried using:
> /bin/bash /etc/BackupPC/notify.sh -c $host -s $share -t $type -r $xferOK
>
> The log says it is being executed but also:
>
> Backup failed on server01 (DumpPostUserCmd returned error status 256)
>
> When I run the script using sh -c “…” backuppc iot runs fine.
>
> So what’s my mistake here?
>

Your script needs to return an exit code of 0.  Anything else will be
considered an error status.  Scripts normally return the exit value
from the last command executed.  If that is not following conventions
you can add a line 'exit 0' at the end to make backuppc consider it
successful regardless.

-- 
   Les Mikesell
      lesmikes...@gmail.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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