BackupPC-users

Re: [BackupPC-users] multiple pre/post commands

2009-02-02 20:30:28
Subject: Re: [BackupPC-users] multiple pre/post commands
From: Nick Smith <nick.smith79 AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 2 Feb 2009 20:27:54 -0500
Ive tried putting ";" in between the two commands, ive tried & and &&
as well, with & in there, it seems to run both commands but the
variables arent being pulled from backuppc, so the email doesnt work
correctly.  and also the script that runs my vshadow commands doesnt
seem to be working correctly either now that ive checked it.
ive also tried hand editing the config.pl file and using "" around
each command and that doesnt work either, and using "" & "" and "";""

im kinda stumped here.

On Mon, Feb 2, 2009 at 7:53 PM, Rob Owens <rowens AT ptd DOT net> wrote:
> In bash, you can make your script accept arguments.  See this link:  
> http://www.ibm.com/developerworks/library/l-bash2.html
>
> I'm not sure if this works or not for the backuppc user, because his shell is 
> sh.  Maybe someone else can advise.
>
> -Rob
>
> On Mon, Feb 02, 2009 at 07:33:07PM -0500, Nick Smith wrote:
>> What would the script look like?
>>
>> The two commands are:
>> /etc/backuppc/preusercmd-host1.sh $host
>> /etc/backuppc/startbkupemail.sh $user $xferOK $host $type $cmdType
>>
>> the latter one has from what ive played with it, has to be run from
>> the predump command or the variables backuppc defines dont get picked
>> up for some reason.
>>
>> any ideas?
>>
>> On Mon, Feb 2, 2009 at 7:16 PM, Rob Owens <rowens AT ptd DOT net> wrote:
>> > On Mon, Feb 02, 2009 at 06:47:35PM -0500, Nick Smith wrote:
>> >> Is it possible to use more than on pre/post command per host?
>> >> Would they need to be separated by a semi-colon or comma or similar?
>> >>
>> >> Thanks for any help, i couldnt find the info in the docs or from google.
>> >>
>> > I'm not sure, but couldn't you just make a script that runs all your 
>> > commands, and call that script as a single pre/post command?
>> >
>> > -Rob
>> >
>> > ------------------------------------------------------------------------------
>> > Create and Deploy Rich Internet Apps outside the browser with 
>> > Adobe(R)AIR(TM)
>> > software. With Adobe AIR, Ajax developers can use existing skills and code 
>> > to
>> > build responsive, highly engaging applications that combine the power of 
>> > local
>> > resources and data with the reach of the web. Download the Adobe AIR SDK 
>> > and
>> > Ajax docs to start building applications 
>> > today-http://p.sf.net/sfu/adobe-com
>> > _______________________________________________
>> > 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/
>> >
>>
>> ------------------------------------------------------------------------------
>> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills and code to
>> build responsive, highly engaging applications that combine the power of 
>> local
>> resources and data with the reach of the web. Download the Adobe AIR SDK and
>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>> _______________________________________________
>> 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/
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> 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/
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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/