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

2009-02-03 Thread Matthias Meyer
Try something like this: /usr/local/bin/mypreexec $host -f -q -x -w 10 -s $share -t $cmdType Notify: all "-?" parameters will perform actions in my script "mypreexec". $host as well as $cmdType will be filled by backuppc with the documented values. br Matthias -- Don't Panic --

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

2009-02-03 Thread Craig Barratt
Nick writes: > 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 > see

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

2009-02-02 Thread Nick Smith
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 correctl

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

2009-02-02 Thread Rob Owens
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 Smit

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

2009-02-02 Thread Nick Smith
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 pick

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

2009-02-02 Thread Rob Owens
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 could

[BackupPC-users] multiple pre/post commands

2009-02-02 Thread Nick Smith
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. -- Create and Dep