zmbackup - Logging and Debugging

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
tux-oss
Posts: 2
Joined: Mon Mar 06, 2023 9:29 pm

zmbackup - Logging and Debugging

Post by tux-oss »

Hi,

Recently we have run into issues with our automated backups using zmbackup.
We backup all accounts nightly using

Code: Select all

zmbackup -a all -f -z -d
The backup seems to work at first but at some point fails and zmbackupquery will report back "Error occurred: backup full-20230306.080509.794 not found"
There are no folders in sessions folder but it remains in tmp/

We can assume that it is having an issue with one of the accounts; how ever zmbackup does not appear to logging anywhere so we can figure where it is failing.

Does zmbackup create logs any where?
I cannot seems to find any in /opt/zimbra/logs/ or /var/logs/*

-d is for debugging, where does this output to?

We are using Release NETWORK edition, Patch 8.8.15_P33

Kind Regards
tux-oss
Posts: 2
Joined: Mon Mar 06, 2023 9:29 pm

Re: zmbackup - Logging and Debugging

Post by tux-oss »

As a workaround, we will just have our script keep reporting any changes to the account that it is currently backing up (using zmbackupquery).

Then at least we can get a general idea of which account is causing all backups to fail.

The backups appear to get backed up in descending alphabetical order.

Code: Select all

			if [ "$DEBUG" -eq 1 ]
			then
				# Get current account being backed up
				ACCOUNT=`echo "$BACKUP_QUERY" | grep "Currently backing up:"`
				if [ "$ACCOUNT" != "$ACCOUNT_OLD" ]
				then
					echo "$ACCOUNT"
					ACCOUNT_OLD=$ACCOUNT
				fi
			fi
Post Reply