Thanks for the effort in scripts. I have tested 'zimbra_backup_user.sh' and it appears to work fine. Then i ran 'zimbra_restore_user.sh' (adding the lines that ict4schools posted above). Everything seems to be restored fine. But in the process of restoration, i recieve this twoo errors:
Mon May 24 08:31:44 CST 2010 : Processing
manu@testmail.usac.edu.gt
Mon May 24 08:31:57 CST 2010 : Getting group_id and index_volume_id
Mon May 24 08:31:57 CST 2010 : zimbraId : 1073a1b5-390f-43b3-9cbd-ec49cd441e02
Mon May 24 08:31:57 CST 2010 : Id : 11
Mon May 24 08:31:57 CST 2010 : Group : 11
Mon May 24 08:31:57 CST 2010 : Mailbox : mboxgroup11
Mon May 24 08:31:57 CST 2010 : Quota Used : 3500
Mon May 24 08:31:57 CST 2010 : Getting message_volume_id and index_volume_id
Mon May 24 08:31:58 CST 2010 : Getting index volume path
Mon May 24 08:31:58 CST 2010 : Getting message volume path
Mon May 24 08:31:58 CST 2010 : index1 path : /opt/zimbra/index
Mon May 24 08:31:58 CST 2010 : message1 path : /opt/zimbra/store
Mon May 24 08:32:07 CST 2010 :
manu@testmail.usac.edu.gt is now in maintenance mode.
Mon May 24 08:32:07 CST 2010 : Restoring index_n_store tarball to /opt/zimbra_cache/manu@testmail.usac.edu.gt
ls: cannot access /opt/zimbra_cache/manu@testmail.usac.edu.gt/opt/zimbra/index: No such file or directory
ls: cannot access /opt/zimbra_cache/manu@testmail.usac.edu.gt/opt/zimbra/store: No such file or directory
Mon May 24 08:32:07 CST 2010 : Restoring mboxgroup11 < /opt/zimbra_backup/manu@testmail.usac.edu.gt/2010-05-24-0827//mboxgroup11.sql
Mon May 24 08:32:09 CST 2010 : Restoring zimbra < /opt/zimbra_backup/manu@testmail.usac.edu.gt/2010-05-24-0827//mailbox.sql
ERROR 1062 (23000) at line 25: Duplicate entry '11' for key 1
Mon May 24 08:32:09 CST 2010 : Restoring zimbra < /opt/zimbra_backup/manu@testmail.usac.edu.gt/2010-05-24-0827//mailbox_metadata.sql
ERROR 1062 (23000) at line 25: Duplicate entry '11-CONTACT_RANKINGS' for key 1
Mon May 24 08:32:09 CST 2010 : Restoring zimbra < /opt/zimbra_backup/manu@testmail.usac.edu.gt/2010-05-24-0827//out_of_office.sql
Mon May 24 08:32:09 CST 2010 : Restoring zimbra < /opt/zimbra_backup/manu@testmail.usac.edu.gt/2010-05-24-0827//scheduled_task.sql
Mon May 24 08:32:09 CST 2010 : Restoring zimbra < /opt/zimbra_backup/manu@testmail.usac.edu.gt/2010-05-24-0827//table_maintenance.sql
Mon May 24 08:32:19 CST 2010 :
manu@testmail.usac.edu.gt is now in active mode.
can comebody tell me what i'm doing wrong?
Thanks.