Re: [BackupPC-users] Problem, Backuppc is not executing a defined command before running a backup
That did it - removing the ''; Thanks! James Beam Networking is more than just cables and connectoins... -- Original Message -- From: "Craig Barratt" To: "James Beam" Sent: 2/22/2009 9:11:09 PM Subject: Re: [BackupPC-users] Problem, Backuppc is not executing a defined command before running a backup >James writes: > >>Executing DumpPreUserCmd: '/usr/local/bin/startbkpemail.sh nxweb05 >>incr'; >>Exec of '/usr/local/bin/startbkpemail.sh nxweb05 incr'; failed > >It thinks the command is > > '/usr/local/bin/startbkpemail.sh nxweb05 incr'; > >so it is trying to run this executable: > > '/usr/local/bin/startbkpemail.sh > >rather than this command: > > /usr/local/bin/startbkpemail.sh nxweb05 incr > >I suspect you have added quotation symbols inside the CGI editor for >DumpPreUserCmd. The quotation marks and semicolon should not be >used inside in the CGI editor - those are only if you are editing >the config.pl settings directly. > >Craig > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Problem, Backuppc is not executing a defined command before running a backup
James writes: > Executing DumpPreUserCmd: '/usr/local/bin/startbkpemail.sh nxweb05 > incr'; > Exec of '/usr/local/bin/startbkpemail.sh nxweb05 incr'; failed It thinks the command is '/usr/local/bin/startbkpemail.sh nxweb05 incr'; so it is trying to run this executable: '/usr/local/bin/startbkpemail.sh rather than this command: /usr/local/bin/startbkpemail.sh nxweb05 incr I suspect you have added quotation symbols inside the CGI editor for DumpPreUserCmd. The quotation marks and semicolon should not be used inside in the CGI editor - those are only if you are editing the config.pl settings directly. Craig -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Problem, Backuppc is not executing a defined command before running a backup
Executing DumpPreUserCmd: '/usr/local/bin/startbkpemail.sh nxweb05 incr'; Exec of '/usr/local/bin/startbkpemail.sh nxweb05 incr'; failed Did not see this before - any ideas on what would cause it to fail? When I run it from the command line it works just fine. James Beam Networking is more than just cables and connectoins... -- Original Message -- From: "Craig Barratt" To: "James Beam" Sent: 2/22/2009 4:47:52 PM Subject: Re: [BackupPC-users] Problem, Backuppc is not executing a defined command before running a backup >James writes: > >>I wanted to be able to notify a group of people when any backup >>starts >>or ends, so I did some googling and found an archived email on this >>list about how I might do it. >> >>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? > >Craig > -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Problem, Backuppc is not executing a defined command before running a backup
James writes: > I wanted to be able to notify a group of people when any backup starts > or ends, so I did some googling and found an archived email on this > list about how I might do it. > > 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? Craig -- 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@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] Problem, Backuppc is not executing a defined command before running a backup
I wanted to be able to notify a group of people when any backup starts or ends, so I did some googling and found an archived email on this list about how I might do it. 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. #!/bin/sh # SUBJECT="Backup for Production Server: $1 has started." TO="james.b...@pinnacle1.com" MESSAGE="/tmp/message.txt" echo "Server Name: $1" >> $MESSAGE echo "Backup Type: $2" >> $MESSAGE echo "" >> $MESSAGE echo "Confirmation will be sent when backup completes." >> $MESSAGE echo "" >> $MESSAGE echo "THIS IS AN AUTOMATED EMAIL" >> $MESSAGE /bin/mail -s "$SUBJECT" "$TO" < $MESSAGE echo "done" >> /tmp/test.txt rm $MESSAGE James Beam Networking is more than just cables and connectoins... -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/