Zimbra Next Generation Modules/Zimbra NG Backup/Moving a mailbox between two mailboxd servers: Difference between revisions

m (1 revision imported: Zimbra NG)
 
Line 1: Line 1:
<div class="col-md-12"><br></div>
#REDIRECT [[Zimbra_NG_Modules/Zimbra_NG_Backup/Moving_a_mailbox_between_two_mailboxd_servers]]
<div class="col-md-12"><br></div>
<ol class="breadcrumb">
  <li>[[Main Page|Zimbra Wiki]]</li>
  <li>[[Zimbra_Next_Generation_Modules]]</li>
  <li>[[Zimbra_NG_Backup]]</li>
  <li class="active"> Moving a mailbox between two mailboxd servers</li>
</ol>
__NOTOC__
<div class="col-md-12"><br /></div>
<div class="col-md-9">
    <h2 class="title-header" style="padding-bottom: 9px; border-bottom: 4px solid #0087c3;">Zimbra NG Backup - Moving a mailbox between two mailboxd servers</h2>
    <div class="col-md-12">
        <div class="ibox-content">
            <div class="post animated fadeInLeft animation-delay-8" style="padding-top:5px">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h5 class="post-title">Zimbra NG Backup - Moving a mailbox between two mailboxd servers</h5>
                        <div class="row">
 
== Moving a mailbox between two different mailboxd servers==
This little guide will walk through the steps required to move a mailbox between different mailboxd servers in a Zimbra infrastructure using Zimbra NG Backup.
Please note that this is just a "workaround" that will lead to a very small downtime for the mailbox being moved, and that a proper "move mailbox" feature will be added to Zimbra Next Generation Modules in the future.
 
=== Naming ===
For clarity purpouses, the following naming will be used in the guide:
 
* account@domain.com : Fictional name for the mailbox to be moved
* "Original Mailbox": The mailbox to be moved
* "New Mailbox": The resulting mailbox
* "Original Server": The server on which the mailbox was originally hosted
* "New Server": The server on which the mailbox will be moved
 
=== Important Warning ===
{{WarningBoxxy|Following this guide you will end up with a new account on a new server. This means that the new account will not have any backup history, and that the backup history of the old account will be available on the original server until the expiration of the Data Retention time.}}
 
=== Requirements ===
* Zimbra NG Backup is required in order to proceed. The Realtime Scanner engine must be active and functional (during part of the process it will be disabled and it will then be re-enabled).
* The backup path of the Original Server must be mounted on the New Server and the 'zimbra' user on the destination server must have r/w access to it.
* It's very important that no Scan operations are started during the move.
 
=== Step-by-step guide ===
* Log into the Original Server's shell and switch to the 'zimbra' user
* STOP the Real Time Scanner
  zxsuite backup setProperty ZxBackup_RealTimeScanner false
* Run an Account Scan on the Original Account
  zxsuite backup doAccountScan account@domain.com
* Rename the original account to a provisional name
  zmprov ra account@domain.com account_old@domain.com
* Log into the Destination Server's shell and switch to the 'zimbra' user
* Start an "External Restore" using the original account name and specifying the original server's backup path as the source path. It's important to use all the "skip" directives described.
  zxsuite backup doExternalRestore /path/to/originalserver/backup/ accounts user@domain.com skip_aliases true skip_system_accounts true skip_distribution_lists true skip_coses true
* Once the restore is completed, remove any existing aliases from the original mailbox
* Flush Zimbra's cache on both servers (failing to do so might lead to "Alias already existing" during the next step)
  zmprov fc all
* Create all due aliases on the new mailbox
* Finally, re-start the Realtime Scanner
  zxsuite backup setProperty ZxBackup_RealTimeScanner true
                        </div>
                    </div>
                    <div class="col-md-9">
                        <div class="panel-footer">
                            <p><i class="fa fa-clock-o"></i> Aug 25, 2016 - [https://www.zimbra.com/email-server-software/ Know more »]</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="col-md-3"><br /></div>
<div class="col-md-3">
    <div class="panel panel-zimbrared-light-border">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-gear pull-left"></i> Zimbra Next Generation Modules</h3>
        </div>
        <div class="panel-body">
            {{ZNG}}
        </div>
    </div>
</div>
<div class="col-md-3">
    <div class="panel panel-primary-light-border">
        <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-info-circle pull-left"></i> Zimbra Next Generation Modules Resources</h3>
        </div>
        <div class="panel-body">
            {{ZNGL}}
        </div>
    </div>
</div>
<div class="clearfix"></div>
<div class="col-md-12"><br></div>
{{FH}}

Latest revision as of 12:51, 29 November 2017

Jump to: navigation, search