I use amanda to backup my own desktop and laptop as well. Sometimes I want to leave office and let amanda do its work ... and I wrote some small script for the amanda-clients which basically checks if amandad is (still) running every few minutes and shuts down the box if not.
This is rather quick and dirty ... and it isn't really correct. AFAI understand if the server is currently dumping a DLE from host B the amandad-daemon is not active on host A ... but a DLE from host A then fails later when my script decided to shut down inbetween. So the logic should be more like "is there any DLE on the host still to be dumped by the current run of amdump" ... if NO, poweroff the machine. In server-context we don't care but it makes sense for backing up workstations or something which then should be turned off for the weekend or so. Or virtual machines ... Might be a nice feature for amanda itself, right? I wonder if some of you also have solutions or scripts for that ... or any ideas how to elegantly solve this. Is it solvable via the Script API? http://wiki.zmanda.com/index.php/Script_API says "post-host-backup" is executed on the amanda *server* ... hmm. "post-dle-backup" wouldn't know if it is the last DLE dumped ... And this would need some additional flag to be able to toggle that as sometimes we want the box to be shut down and sometimes not. Just thinking ... Best, Stefan
