Results 1 to 6 of 6

Thread: Backup / Restore with REST

  1. #1
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    5

    Exclamation Backup / Restore with REST

    Hi, I was able to make backups of my users data using zmmailbox and exporting them to a .tgz file. Then I restored the data successfully, the users can see the message in their Inbox, but they CAN'T read it, it show up a error message about a lost connection of a service, I checked and all my services are running... the curious thing is that the only affected messages are the imported ones, new messages can be read without problems... Any help?

  2. #2
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    7

    Default

    I am not familiar with backing up in that manner - but as a first pointer - I would suggest you have only restored the user's database - and not their actual mail message store of email message files. The two are stored separately on zimbra.

    That would explain why they could see all the mail headers for old emails - but not actually open them. New messages would have both the headers in the database AND the email file in the mail message store.

    By the way - before one of the mods asks - you should run

    zmcontrol -v

    as the zimbra user on your server, and copy the output into your forum profile.

  3. #3
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    5

    Default

    I know, first I get the list of users then backup each user using the REST method, what I backup is their store files. So how is the proper way to backup and restore users data? I think you need to export the SQL too? help please.
    Last edited by zietbukuel; 09-23-2010 at 06:39 AM.

  4. #4
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    Default

    It may help if you post the exact commands that you're using for the backup as well as the restore.

  5. #5
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    5

    Default

    Using the zimbra user I typed the following commands.

    Backup:

    zmmailbox -z -m "${user}@${domain}" getRestURL "//?fmt=tgz" > /backup/${user}.tgz

    Restore:

    zmmailbox -z -m "${user}@${domain}" postRestURL "//?fmt=tgz&resolve=reset" /backup/${user}.tgz

  6. #6
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    5

    Default

    Fixed! (kinda)... I just needed to run the restore command twice, and now my users can acces their email messages, I don't know if that is the proper way of doing it, but it works! Thanks.

Similar Threads

  1. slapd fail - (restore backup)
    By seewhy in forum Administrators
    Replies: 9
    Last Post: 04-06-2011, 02:04 AM
  2. Inconsistent backup of Zimbra
    By Bingo in forum Administrators
    Replies: 8
    Last Post: 03-11-2010, 05:02 AM
  3. [SOLVED] Regarding Network Edition Backup and Restore
    By bhwong in forum Administrators
    Replies: 7
    Last Post: 12-03-2009, 07:07 AM
  4. zimbra opesource Backup Script Problem!
    By tashi in forum Administrators
    Replies: 4
    Last Post: 03-30-2009, 11:49 PM
  5. Restore specific network edition backup
    By sdemeyer in forum Administrators
    Replies: 5
    Last Post: 09-07-2008, 09:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •