Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #31 (permalink)  
Old 03-18-2011, 07:29 AM
Member
 
Posts: 13
Cool Didn't work for me, sorry.

Hi everyone!
I hate having bad news, but it didn't work for me.
I upgraded recently to ZCS 7 FOSS over RHEL 5.4 and tried the backup script, but all I get is this:

Code:
[root@mail ~]# ./zimbra_backup_all_users.sh 
Fri Mar 18 10:20:55 CLT 2011 : ./zimbra_backup_all_users.sh Started
Fri Mar 18 10:20:55 CLT 2011 : Dumping zimbra --single-transaction > /backup/zimbra_backup/zimbra.sql
Fri Mar 18 10:20:56 CLT 2011 : Dumping LDAP
Fri Mar 18 10:20:58 CLT 2011 : Getting accounts
ERROR: service.INVALID_REQUEST (invalid request: can only be used with  "zmprov -l/--ldap")
Fri Mar 18 10:21:02 CLT 2011 : ./zimbra_backup_all_users.sh Finished
I'm quite new to Zimbra, and I'd really appreciate your help.
PS.: If this message is related to another already posted, I'm very sorry

(UPDATE)
It works great now!
Just replaced the zmprov section with zmprov -l and all went smooth and running. Also managed to rsync everything to a remote server within my LAN.

So thank you very much. Great work!

Thanks in advance.
KMinamoto

Last edited by kminamoto; 07-05-2011 at 01:50 PM.. Reason: Now it works
Reply With Quote
  #32 (permalink)  
Old 04-07-2011, 07:53 PM
Active Member
 
Posts: 29
Unhappy

hi to all,

any update to this thread?
i encountered error running the restore.sh scripts.

[root@mail opt]# ./restore.sh student@domain /opt/zimbra_backup/student\@domain/2011-04-08-0947/
Fri Apr 8 10:31:59 PHT 2011 : Processing student@domain
Fri Apr 8 10:32:25 PHT 2011 : Getting group_id and index_volume_id
Fri Apr 8 10:32:25 PHT 2011 : zimbraId : 1dff4883-de5d-47d5-8194-0a7c1c81b399
Fri Apr 8 10:32:25 PHT 2011 : Id : 4
Fri Apr 8 10:32:25 PHT 2011 : Group : 4
Fri Apr 8 10:32:25 PHT 2011 : Mailbox : mboxgroup4
Fri Apr 8 10:32:25 PHT 2011 : Quota Used : 17129
Fri Apr 8 10:32:25 PHT 2011 : Getting message_volume_id and index_volume_id
Fri Apr 8 10:32:25 PHT 2011 : Getting index volume path
Fri Apr 8 10:32:25 PHT 2011 : Getting message volume path
Fri Apr 8 10:32:25 PHT 2011 : index1 path : /opt/zimbra/index
Fri Apr 8 10:32:25 PHT 2011 : message1 path : /opt/zimbra/store
Fri Apr 8 10:32:38 PHT 2011 : student@domain is now in maintenance mode.
Fri Apr 8 10:32:38 PHT 2011 : Restoring index_n_store tarball to /opt/zimbra_cache/student@domain
ls: /opt/zimbra_cache/student@domain/opt/zimbra/index: No such file or directory
ls: /opt/zimbra_cache/student@domain/opt/zimbra/store: No such file or directory

Fri Apr 8 10:32:38 PHT 2011 : Restoring mboxgroup4 < /opt/zimbra_backup/student@domain/2011-04-08-0947//mboxgroup4.sql
Fri Apr 8 10:32:41 PHT 2011 : Restoring zimbra < /opt/zimbra_backup/student@domain/2011-04-08-0947//mailbox.sql
ERROR 1062 (23000) at line 25: Duplicate entry '4' for key 'PRIMARY'
Fri Apr 8 10:32:41 PHT 2011 : Restoring zimbra < /opt/zimbra_backup/student@domain/2011-04-08-0947//mailbox_metadata.sql
ERROR 1062 (23000) at line 25: Duplicate entry '4-CONTACT_RANKINGS' for key 'PRIMARY'
Fri Apr 8 10:32:41 PHT 2011 : Restoring zimbra < /opt/zimbra_backup/student@domain/2011-04-08-0947//out_of_office.sql
Fri Apr 8 10:32:41 PHT 2011 : Restoring zimbra < /opt/zimbra_backup/student@domain/2011-04-08-0947//scheduled_task.sql
Fri Apr 8 10:32:41 PHT 2011 : Restoring zimbra < /opt/zimbra_backup/student@domain/2011-04-08-0947//table_maintenance.sql
Fri Apr 8 10:32:54 PHT 2011 : student@domain is now in active mode.

btw i used the restore.sh scripts that was posted before.

any help and suggestions is much appreciated.

thanks

Last edited by bhangki; 04-07-2011 at 11:07 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.