how do we restore the backed up files after using the zmbac.sh back up script.the back up script was working fine but don't know how to restore the backed up files.>>
Printable View
how do we restore the backed up files after using the zmbac.sh back up script.the back up script was working fine but don't know how to restore the backed up files.>>
Restoration depends on how blown up your system is. If you are just taking a working system back to an earlier date, you'd just expand the entire contents of your backup file into a temporary directory, stop all zimbra services, copy the contents of your temporary directory over top of /opt/zimbra, and restart.
If you actually have to do a reinstall, which is more likely if your system blows up, MAKE ABSOLUTELY SURE YOU HAVE THE INSTALLATION BINARIES FOR THE EXACT SAME VERSION YOU HAD WHEN THE BACKUP WAS MADE. Install those binaries, then stop zimbra services, and copy the expanded backup over top of all files in /opt/zimbra. Restart zimbra and your system should be restored.
hi heinzg,
Thanks for the back up script, it was great but how do we restore the backed up data in case of server failures
hi dan,
many thanks for the info on restoring zimbra..
regards tashi
hi,
i got the below error when script is running.
Archive Created successfully
Create MD5 Checksum for 44_Zimbra_Backup_04-November-2008_FULL.1.dar
MD5 Checksum Created successfully
copy archive to 172.16.1.7 remote directory /mailbackup/
44_Zimbra_Backup_04-November-2008_FULL.1.dar 100% 426MB 10.6MB/s 00:40
44_Zimbra_Backup_04-November-2008_FULL.1.dar.md5 100% 79 0.1KB/s 00:00
Create file listing from archive
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
Full Zimbra Backup ended at: 15:38
Backup took Hr:0 Min:10 Sec:31 to complete
:::::::::::::::::Cheers Osoffice for the script:::::::::::::::::::::::
zmbac.sh: line 901: /Backup/zimbra_dars/Backuplist-04-November-2008.txt.gz: Permission denied
I am getting error in zimbra back up script while running with -d option.
[root@server1 scripts]# sh zmbac.sh -d
Diff Backup started at: 17:50
Create file listing from archive
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
Diff Zimbra Backup ended at: 17:50
Backup took Hr:0 Min:0 Sec:0 to complete
:::::::::::::::Cheers Osoffice for the script:::::::::::::::::::::::::
[root@server1 scripts]# cat /Backup/zimbra_dars/Backuplist-15-November-2008.txt
Aborting program. User refused to continue while asking: /Backup/zimbra_dars/45_Zimbra_Backup_15-November-2008_DIFF.1.dar is required for further operation, please provide the file.
[root@server1 scripts]#
Indeed, good advice. I keep the install tgz for my version (5.0.10) in the folder that the tapes drives grab every night.Quote:
MAKE ABSOLUTELY SURE YOU HAVE THE INSTALLATION BINARIES FOR THE EXACT SAME VERSION YOU HAD WHEN THE BACKUP WAS MADE.
Many thanks to heinzg for this script. Tried writing my own, but it was pathetic compared to his. Learned a lot from reading through it, too! :D
- Joe
Whoa. Had a major issue come up after using this script on ZCS 5.0.10. The mail transfer agent stopped starting up after running the script. I noticed a few days later when the Z admin console indicated that mta had stopped. Manual restart via zmcontrol stop & zmcontrol stop didn't do any good, and neither did physical reboots.
I wound up restoring to the first full backup. Anyone have similar issues? Hopefully, the mta failure is just a coincidence. I'll be trying some other things soon.
- Joe
I am getting this same error on my first run of full backup, except that it is at line 890. Otherwise the backup seems to have run successfully.Quote:
Originally Posted by jay.choklsi
Code:888 echo "Backup took Hr:$hours Min:$minutes Sec:$seconds to complete"
889 echo ":::::::::::::::::Cheers Osoffice for the script:::::::::::::::::::::::"
890 (cat $LOG; $UUENCODE "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz) | mail -c $EMAILCC \
891 -s "Zimbra Full Backup Log on `hostname --fqdn`" $EMAIL
Hello,
My thanks to the author for sharing this script with us, is very handy.
I have installed it in ubuntu 8.04 LTS after executing the command
./zmbac.sh -f
Everything goes fine except for the last part when stuck in
Archive 10_Zimbra_Backup_11-March-2009_FULL requires a password:
Any ideias?
Thanks for your help.