Results 1 to 6 of 6

Thread: zmrestore restoreToTime problem

  1. #1
    magsuser2007 is offline Junior Member
    Join Date
    Aug 2007
    Posts
    6
    Rep Power
    7

    Default zmrestore restoreToTime problem

    Hi All,

    I am having trouble using zmrestore to restore mailboxes to a certain point in time.

    The redolog file is as follows:

    -rw-r----- 1 zimbra zimbra 2035998 Aug 27 10:41 redo-20070827.154151.000-seq0.log

    I tried many different times, but still missing some emails which were received after the last backup. Some tries:

    zmrestore -s zimbra.server.com -a user@zimbra.server.com -restoreToTime 20070827.104151.000

    zmrestore -s zimbra.server.com -a user@zimbra.server.com -restoreToTime 20070827.154151.000

    However, it works if I use:

    zmrestore -s zimbra.server.com -a user@zimbra.server.com -restoreToRedoSeq 0

    Thanks,

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

    Default

    They have 'zimbra' in their email address fqdn?
    Quote Originally Posted by magsuser2007 View Post
    zmrestore -s zimbra.server.com -a user@zimbra.server.com -restoreToRedoSeq 0
    Or are you playing on a test box?

    I know your not saying it errors out, but let's try with quotes on the end and a double -- (can do either after 4.5.4?)
    zmrestore -s zimbra#.wiu.edu -a user@wiu.edu --restoreToTime '20070827.104151.000'

    As a side test-what happens if you put the time as that of the incremental (using restoreToTime). Does that act the same as your restoreToIncrLabel?

    Date formats:
    20070827.104151.000
    20070827.104151
    20070827104151000
    20070827104151
    2007/08/27 10:41:51 000
    2007/08/27 10:41:51
    2007/08/27-10:41:51-000
    2007/08/27-10:41:51

    Don't forget that you can move the restore to another account: (in this case it will be restoredmailuser@wiu.edu)
    zmrestore -s zimbra#.wiu.edu -ca -pre restoredmailuser -a user@wiu.edu -restoreToRedoSeq 0

    FYI: After you perform any of the following point-in-time restores, you should immediately run a complete backup for those accounts to avoid future restoration problems with those accounts. (Of course when you do that I'll go through all the redo logs so be sure you got any necessary full/incremental/redo logs moved to a safe place)
    Last edited by mmorse; 11-07-2007 at 02:47 PM.

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

    Default

    Kinda related in case you were attempting incremental restores in your ?testing? process. (Unless you really have 'zimbra' in your domain name and this is a live box; then I encourage you to open a support request.)

    There's an extra 'e' in some of the docs-it should be 'Incr' not 'Incre' in restoreToIncrLabel.

    I just filed:
    Bug 19744 - restoreToIncrLabel (not restoreToIncreLabel)
    Last edited by mmorse; 08-28-2007 at 07:24 AM.

  4. #4
    magsuser2007 is offline Junior Member
    Join Date
    Aug 2007
    Posts
    6
    Rep Power
    7

    Default

    Hi,

    The -- did not work, it is expecting one dash

    The single quote did not make any difference. In fact whether or not I put single quotes it prints the following after I issue the zmrestore command:
    "using restore to time of 2007/08/27 10:41:51 000"

    Which means that it thinks that it is restoring to this time but it is not!!!


    PS. Thanks for the restoreToIncrLabel bug

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

    Default

    Maged Messeh,

    Can you verify if the incrememtals are working properly?
    ie: create account, put some mail in it, run a full backup, send it some more mail (remember the content), do an incremental(#1), delete that mail, run another incremental(#2), do whatever for a bit, then run -restoreToIncrLabel on the first incremental.

    Yes I know this is not the end goal, but what happens if you put the exact time of the incremental in restoreToTime? Does that act the same as your restoreToIncrLabel?
    zmrestore -s zimbra#.wiu.edu -a user@wiu.edu -lb full-200708etc -ca -pre restore -restoreToTime 'put in time of incremental here'

    Play with putting -br on the end of that to see if it forces use of the backup's redo logs only so your not even remotely messing with current redologs.

    If this is on a test machine with a few users (else it'll be one large blob of data)-give us the output of the following at stragetic points in your testing:
    zmbackupquery -v
    ls -l /opt/zimbra/redolog
    (of course be sure to let us know when those are taken)

    ---
    You need to use the -lb argument to specify a full that takes place prior to the date of the time you want to restore to, as fulls after the date wouldn't have the incrementals/redologs to the prior time.

    Created: CLI zmrestore restoreToTime Network Edition only - Zimbra :: Wiki
    Last edited by mmorse; 05-21-2008 at 10:41 AM.

  6. #6
    bobby is offline Zimbra Employee
    Join Date
    Nov 2005
    Posts
    518
    Rep Power
    10

    Default

    mmorse shows the answer in the last post: make sure to specify (with the -lb,--label option to zmrestore) the last full backup before the time to which you are restoring.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Zimbra, WM5.0, AS + problem with regional fonts
    By wojo2000 in forum Zimbra Mobile
    Replies: 7
    Last Post: 06-25-2007, 01:04 AM
  2. strange MTA Relay Problem
    By pfuschi in forum Installation
    Replies: 0
    Last Post: 10-31-2006, 11:51 AM
  3. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 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
  •