BackupPC-users

Re: [BackupPC-users] DumpPreShareCmd returned error status 65280 if the command returned 0

2009-07-12 10:37:30
Subject: Re: [BackupPC-users] DumpPreShareCmd returned error status 65280 if the command returned 0
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: Matthias Meyer <matthias.meyer AT gmx DOT li>
Date: Sun, 12 Jul 2009 07:19:20 -0700
Matthias writes:

> I use backuppc 3.1.0-4lenny1 (Debian).
> I have a bash script, run as DumpPreShareCmd, which should return 0 or 1. 
> Unfortunately
> BackupPC didn't receive the return codes from my script.
> 
> For test I have made a script which contains only two lines:
> #! /bin/bash
> exit 0
> 
> The __LOGDIR__/LOG contains:
> 2009-07-11 13:17:09 User backuppc requested backup of firewall (firewall)
> 2009-07-11 13:17:09 Backup failed on firewall (DumpPreShareCmd returned error 
> status 65280)
> 2009-07-11 13:17:30 User backuppc requested backup of vhost (vhost)
> 2009-07-11 13:17:30 Started incr backup on vhost (pid=24614, share=/)

Please look in the XferLOG.bad file to see the exact command
being run.  Are you using an absolute path in DumpPreShareCmd?
Is your script executable?

Also, I think the space after the '#!' is ok, but you might want to
remove that too, so instead of

    #! /bin/bash

you might try this:

    #!/bin/bash

Craig

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/