| Welcome to the Zimbra - Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | | 
10-21-2008, 04:40 AM
| | | how to restore when using the backup script 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.>>
Last edited by tashi : 10-21-2008 at 04:42 AM.
| 
10-22-2008, 09:06 AM
| | | 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.
__________________
Cheers,
Dan
| 
10-23-2008, 12:23 AM
| | | 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 | 
10-23-2008, 03:40 AM
| | | hi dan,
many thanks for the info on restoring zimbra..
regards tashi | 
11-04-2008, 03:27 AM
| | | 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]#
__________________
Regards,
Jay Choksi
Last edited by phoenix : 11-15-2008 at 04:52 AM.
| 
11-26-2008, 08:23 PM
| | | Quote: |
MAKE ABSOLUTELY SURE YOU HAVE THE INSTALLATION BINARIES FOR THE EXACT SAME VERSION YOU HAD WHEN THE BACKUP WAS MADE.
| Indeed, good advice. I keep the install tgz for my version (5.0.10) in the folder that the tapes drives grab every night.
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!
- Joe | 
12-01-2008, 12:43 AM
| | | 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 | 
02-17-2009, 11:15 PM
| | Intermediate Member | |
Posts: 23
| | Quote: |
Originally Posted by jay.choklsi zmbac.sh: line 901: /Backup/zimbra_dars/Backuplist-04-November-2008.txt.gz: Permission denied | 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. 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 | 
03-11-2009, 11:52 AM
| | | 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. | 
03-11-2009, 03:26 PM
| | | Quote:
Originally Posted by jsauve 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 | Hi, I can't imagine that the backup script caused the issue with the mta. As I have seen this on a box where the script is not running.
I would like more info if you can provide, i will look into it.
Cheers
heinzg | | Thread Tools | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |