I'm looking to setup a shell script for Network Edition backups, basically a wrapper around the zmbackup CLI utility which adds a bit of stuff for compressing and transferring once the full backup has completed.
The problem I've got is that the zmbackup command exits immediately and sets the backup going in the background.
Is there a way of running a shell script once the backup has completed?
I don't really want to be polling zmbackupquery every 5-10 minutes and grepping to see if the backup has completed.
Or is there another way to run a full backup, that's not just zipping up the install directory?