Results 1 to 6 of 6

Thread: quick question re: restores

  1. #1
    Nutz is offline Special Member
    Join Date
    Feb 2007
    Location
    Massachusetts
    Posts
    136
    Rep Power
    8

    Default quick question re: restores

    I've got a user that is missing all of her mail from a particular day.

    Can I restore the full from that day straight to her mailbox, or do I need to go to a new mailbox and move it over.

    I don't want to process the redo logs (because that will find the mail, the move it to the trash, then empty it), just want to get those mails back.

    Thank you,
    Nutz

  2. #2
    Nutz is offline Special Member
    Join Date
    Feb 2007
    Location
    Massachusetts
    Posts
    136
    Rep Power
    8

    Default

    After some testing, this doesn't do what I really want it to (not that I'm all that surprised, as this is probably the intended functionality) but if you run:

    <CODE>zmrestore -a account@domain -lb full-20070915.050003.134 -restoreToTime 20070922200000</CODE>

    It brings the box to that point in time. Now that I think of it, that makes a lot of sense. But I'd really just like to get that one mail back somehow...

    Is the only way to do this to restore to another account? And if so, how do you get it into the regular account?

    Thank you,
    Nutz

  3. #3
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Method 1:
    Sounds like you already saw it but to restore to another account you add:
    -ca -pre SomethingYouWantAsAPrefix
    then
    a) forward (less clean obviously-but you'll have the content back)
    b) drag drop in thunderbird (connect to both accounts-with /tb on end to keep the original times)
    c) or another thick-client etc

    Method 2:
    If you don't restore to another account:
    zmlmtpinject -r user@domain.com -s sender@domain.com /opt/zimbra/location/#/#/msg/123-4.msg

    Injecting a whole folder of files would be:
    zmlmtpinject -r user@example.com -s sender@domain.com -d /opt/zimbra/location/#/#/

    If you do this a bunch over and over in a short time you might have you'll run into the single instance storage/drop duplicatea fun. Though you can turn that off across the entire board by globally setting zimbraMessageIdDedupeCacheSize to 0, but I don't think you want to right now from the sound of it

    Method 3:
    zmmailbox addmessage

    There might be a RFE in for a GUI backup browser/ability to drill down to an individual email...
    Last edited by mmorse; 09-24-2007 at 11:59 AM.

  4. #4
    Nutz is offline Special Member
    Join Date
    Feb 2007
    Location
    Massachusetts
    Posts
    136
    Rep Power
    8

    Default

    Thanks mmorse,

    Is there any more documentation for the zmlmtpinject command?

    The wiki just says "For testing" and the -h is not the most helpful...

    On top of that, to actually restore some mail for anybody you have to have their password?!?!?! How silly! I'll look for an RFE. Thank you!

    -Nutz

  5. #5
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Well only when trying to grab a single mail w/ the first method. But your the admin so you can set it afterall. Think about it though, you want a password with that method, else anyone could connect a thick-client to those 2 accounts.

    zmmailbox has -admin pass or -zadmin

    Be aware inject essentially looses folder structure/read status/etc.
    zmlmtpinject [options] [files]

    [options]:
    -a,--address lmtp server (default localhost)
    -d,--directory message file directory
    -D,--domain default per-connection recipient domain (default example.zimbra.com)
    -N,--every report progress after every N messages (default 100)
    -p,--port lmtp server port (default 7025)
    -q,--quiet don't print per-message status
    -r,--recipient envelope recipients (rcpt to). This option accepts multiple arguments, so it can't be last if a list of input files is used.
    -S,--stopAfter stop after sending this many messages after warm-up
    -s,--sender envelope sender (mail from)
    -t,--threads number of worker threads (default 1)
    -T,--trace trace server/client traffic
    -u,--username username prefix (default "user")
    -w,--warmUpThreshold warm-up server with first N messages, then start measuring (default no warm-up)
    -z,--repeat repeatedly inject these messages NUM times
    (won't actually make additional physical copies unless you turn off the zimbraMessageIdDedupeCacheSize)

    [files]:
    Direct link to file in rfc822 format, or specify a directory.

    Of course you can combine the methods by restoring to a new account-then find it & use inject/addmessage to another account.
    Last edited by mmorse; 09-24-2007 at 12:30 PM.

  6. #6
    Nutz is offline Special Member
    Join Date
    Feb 2007
    Location
    Massachusetts
    Posts
    136
    Rep Power
    8

    Default

    How about this idea... is there an easy way to figure out what directory the messages actually live in? Like maybe to a restore, figure out the msg id, then inject?

    Thanks,
    Nutz

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Quick Question about ZWC
    By glitch23 in forum Administrators
    Replies: 2
    Last Post: 02-19-2010, 12:30 PM
  2. Replies: 7
    Last Post: 06-08-2008, 01:54 PM
  3. Quick upgrade / backup question
    By peter@mxtoolbox.com in forum Administrators
    Replies: 0
    Last Post: 04-24-2007, 09:35 AM
  4. Multiple Domains Question
    By kristiaan_d in forum Administrators
    Replies: 2
    Last Post: 03-14-2007, 04:38 AM
  5. Quick question on adding domains
    By agnOstos in forum Installation
    Replies: 2
    Last Post: 10-12-2005, 11:22 AM

Posting Permissions

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