> I'd hate to see too much work go into hacking *around* the script API
> -- it's brand new! The best outcome would be to fix/improve the script
> API as appropriate, but at the very least, let's make sure that the
> limitations of the API are well-documented.  From what I can tell from
> this thread:
> 
> * per-host scripts can only run on the server
> * per-host scripts run for *every* DLE to which they are attached,
> which can result in them running several times for a single host; even
> in this case, all scripts are run before any hosts are dumped

Regarding fixing the Script API I think I might have found a bug (using Amanda 
2.6.1p1): POST-HOST-BACKUP only seems to get executed once per amdump.


To reproduce this bug I use the following disklist:

mail01.oelstrasse.boksa.de /var/mail {
        default
        script {
                plugin "amlog-script"
                execute-where server
                execute_on pre-host-backup, post-host-backup
                property "logfile" "/tmp/test"
        }
}
www01.oelstrasse.boksa.de /var/www {
        default
        script {
                plugin "amlog-script"
                execute-where server
                execute_on pre-host-backup, post-host-backup
                property "logfile" "/tmp/test"
        }
}


The result (found in /tmp/test) is:

DailySet1 pre-host-backup server www01.oelstrasse.boksa.de /var/www  
DailySet1 pre-host-backup server mail01.oelstrasse.boksa.de /var/mail  
DailySet1 post-host-backup server mail01.oelstrasse.boksa.de /var/mail  


Obviously there is something wrong.

Is this a known bug? If not: Where should I file it? Are there any known 
workarounds for this bug?

Looking forward to your comments!

Regards

Benjamin

Reply via email to