View Single Post
  #19 (permalink)  
Old 08-18-2009, 05:00 PM
Ono-Sendai Ono-Sendai is offline
New Member
 
Posts: 3
Default

I have been working with the restore script for the past few days and I have a few questions and a couple of comments.

From what I have found the script seems to work somewhat on my test server. I have created a test user and then added various items (mail, contacts, calendar appointments, and tasks). I then performed a backup (which worked without fail) and deleted all of the items I created. I then performed a restore to see what would be restored and what would not.

I found that the mail items were restored with no problem as well as the tasks on the task list, however neither the calendar appointments nor the address book were restored.

After finding this issue I tried to determine if the missing items had in fact make it into the backup and from what I can tell the data in question is in the mboxgroupX.sql file, and upon being run the data will be inserted back into the "mail items" table. It does not appear to be doing that however. The most confusing part of the whole thing is that the other items (mail, task list) are being added back to the table and they are being added in the same insert statement.

While the restore function is running I continue to receive the same error that the /opt/zimbra_cache/{email account}/opt/zimbra/index and /store directories are not there. Initially I thought it might be a rights issue as the owner of those two directories is the zimbra account and not root as all of the other directories are, but after looking deeper into the issue I found that those directories are being completely removed at some point during the restore script running. I have checked for these files existence just prior to running the restore script and they were there, however after running the script they were gone. I'm not even sure the cache folder is required for the restore to work properly. As I understand it the cache folder functions only to allow a two part backup to take place so as to minimize the amount of time a users account will be in maintenance mode. It seems to me that the zimbra_cache folder would not be necessary at all during a restore, so perhaps this has nothing to do with the partial restore problem.

My question is this: Does this script restore contacts and calendar entries or am I expecting it do something is was not designed to do? Am I doing something incorrectly? If it is not designed to restore these items then where should they be restored from/to?

Any input would be great.

Thanks,
Ono-Sendai
Reply With Quote