I have Zimbra ZCS 5.0.10 running in an Ubuntu 8.04 virtual machine on an older Windows 2000 server. In order to backup Zimbra each evening, I've setup a cron job to run a script called zimbraNightlyBackup.sh:
Code:
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
tar -czf /media/zimbraNightlyBackupCache/zimbraNightlyBackup.tar.gz /opt/zimbra
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
zimbrNightlyBackup.sh is in /root/cronscripts/. "/media/zimbraNightlyBackupCache/" is a CIFS automounted samba volume on the W2K server. It works great when I run it from the console as root, but doesn't seem to work right when run as a cron job.
When I run the script from the console as root, the resulting tar.gz winds up being about ~800MB, and mail services shutdown and come back up properly.
When run as a cron job, it takes down mail services, creates a ~200MB tar.gz, and then never starts mail services again. I can't seem to find anything in my logs that's telling me what's going on.
Any ideas?
- Joe