BackupPC-users

Re: [BackupPC-users] BackupPC not recording DumpPreUserCmd in XferLOG if non-zero exit is not ignored.

2009-02-24 15:20:51
Subject: Re: [BackupPC-users] BackupPC not recording DumpPreUserCmd in XferLOG if non-zero exit is not ignored.
From: "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 24 Feb 2009 15:17:43 -0500
John Rouillard wrote at about 20:07:04 +0000 on Tuesday, February 24, 2009:
 > On Sun, Feb 22, 2009 at 02:47:52PM -0800, Craig Barratt wrote:
 > > James writes:
 > > > I made a script with the following contents as a test and named
 > > > it startbkpemail.sh (just used the example name from the post)
 > > > and added the a line '/usr/local/bin/startbkpemail.sh $host
 > > > $type';  in the DumpPreUserCmd field in the host config - but
 > > > it is not executing it. Any suggestions? The permissions on the
 > > > file are 777 for testing so I know that is not the problem.
 > > 
 > > Is there any error message in the XferLOG file?  Does it say it is
 > > executive your DumpPreUserCmd?
 > 
 > I was also working with DumpPreUserCmd and having errors when
 > executing it (I was editing the config.pl file directory and using "
 > not ' so the variable arguments weren't being passed in
 > correctly). The script was generating stdout and stderr output, but I
 > never saw an XferLOG link in the web interface or a non-zero length
 > xferlog in the filesystem for the dump. There seems to be a problem in
 > 3.1.0 where the xferlog is not written or preserved if the
 > DumpPreUserCmd exits with a non-zero exit code.
 > 

I must be missing something, because I would think that the behavior
you describe is normal. If DumpPreUserCmd returns an error, then the
backup never starts so you don't get an XferLOG file - am I missing
something obvious here?

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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/