Results 1 to 4 of 4

Thread: Restoring single folder or item in Open Source edition 8.0.0

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    6

    Default Restoring single folder or item in Open Source edition 8.0.0

    Hi,

    I'm running zcs-8.0.0_GA_5434.UBUNTU10_64.20120907144627, the open source edition. I know backup facilities are less then the commercial one, but even when improvising, how can I restore a single folder that a user has accidentally emptied? The Wiki page for backups describe how to recover a broken system, but not single items.

    I administer several conventional courier-IMAP servers as well, and there I can just use my file backup system (rdiff-backup) to recover the file system entries. But, because Zimbra has a store on disk and an accompanying MySQL DB, that is harder.

    The user in question has a folder containing thousands of mails that is suddenly empty. It's possible he accidentally chose 'empty folder'. He's restoring from the Trash folder now, but that's very limited. He can only restore 100 mails at a time, and it doesn't remember where messages came from; you have to select a target folder. A better trash would alleviate the lack of more complicated backup features.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    You'll want to take a look at zmlmtpinject, there's also a script in the forums that fixes the dates for injected mail if you search for it.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    May 2012
    Posts
    39
    Rep Power
    3

    Default

    Halfgaar,

    phoenix' suggestion is what you are looking for, I used to couple rsync and zmlmtpinject with mysqldump - not for the whole database, see below - in order to backup my zimbra mailboxes myself before switching to the dark side (couldn't manage to waste anymore time on backup management so switched to ZeXtras).
    In order to partially avoid needing to search the zimbra database for a mid->user match, I added the following command to the backup script:


    su - zimbra -c "mysql -e 'select id,comment from zimbra.mailbox' > /backup/users.dump"

    This creates a file containing all mid->user name couples. The only downside is that the name displayed is the "original" one so the file is not accurate for those accounts that have been renamed.
    See ya,
    Mike

  4. #4
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    6

    Default

    OK, thanks for your answers. I'll have to look into it.

Similar Threads

  1. Replies: 5
    Last Post: 07-01-2013, 03:31 AM
  2. Replies: 2
    Last Post: 04-24-2009, 05:52 PM
  3. [SOLVED] Network Edition trial to Open Source edition q's...
    By ArTT Vandelay in forum Installation
    Replies: 2
    Last Post: 07-29-2008, 12:34 AM
  4. Replies: 3
    Last Post: 04-12-2008, 04:35 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
  •