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

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
  #1 (permalink)  
Old 09-24-2007, 10:33 AM
Special Member
 
Posts: 136
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
Reply With Quote
  #2 (permalink)  
Old 09-24-2007, 12:07 PM
Special Member
 
Posts: 136
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
Reply With Quote
  #3 (permalink)  
Old 09-24-2007, 12:32 PM
Moderator
 
Posts: 6,236
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 12:59 PM..
Reply With Quote
  #4 (permalink)  
Old 09-24-2007, 01:07 PM
Special Member
 
Posts: 136
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
Reply With Quote
  #5 (permalink)  
Old 09-24-2007, 01:11 PM
Moderator
 
Posts: 6,236
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 01:30 PM..
Reply With Quote
  #6 (permalink)  
Old 09-24-2007, 01:33 PM
Special Member
 
Posts: 136
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
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.