Shell script wrapper around zmbackup

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
batfastad
Outstanding Member
Outstanding Member
Posts: 281
Joined: Fri Sep 12, 2014 10:43 pm

Shell script wrapper around zmbackup

Post by batfastad »

Hi everyone
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?
Thanks, Ben
Post Reply