Recover data from old hard disk after server failure

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
britesc
Posts: 42
Joined: Fri Sep 12, 2014 5:56 am
Location: Spain
ZCS/ZD Version: 8.8.15

Recover data from old hard disk after server failure

Post by britesc »

Hi,
My zimbra ocs 6 community server hardware has failed. The hard disk is OK.
I will have to install zimbra on a new server, new name and ip etc.
If I attach the old hard disk as an external,  can I recover the data from the old hard disk into the new installation of zimbra? On a new internal hard disk.
I know there is a tool for offline restore. Is that what I should use?
Any advice gratefully received.
Thanks and kind regards,
jB
babyporch
Posts: 3
Joined: Thu Mar 22, 2007 6:36 am

Recover data from old hard disk after server failure

Post by babyporch »

Years ago, this happened to me (server burned).
I revolved injecting mail messages to zimbra.
Follow this step (for each mailbox):
1) Find the mailbox in the recovered path
2) As zimbra user use this script:  
for i in * ; do zmmailbox -z -m myemail@torecover.com addMessage /Recovered $i ; done

3) Emails will be injected in the appropriate mailbox in Recovered folder

4) Repeat the process for each mailbox you want to recover

Tested on 8.0.7
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Recover data from old hard disk after server failure

Post by phoenix »

The above post tells you the important thing about recovering emails but you might want to consider the following old thread on this topic (it sets dates correctly for imported mail): http://forums.zimbra.com/showthread.php ... nject+date



Make sure that you test this on some of the email and import it into a test account to confirm it does what you need.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply