This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:mail:zimbra:zimbra_migrate [2022/08/03 11:23] gcooper |
internet:mail:zimbra:zimbra_migrate [2023/09/20 09:42] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Zimbra Migration ====== | ====== Zimbra Migration ====== | ||
- | FIXME This page is being rewritten! | + | **Method 1**: https:// |
- | **Zextras OSE**: https://www.zextras.com/ | + | **Method 2**: https://community.zextras.com/ |
- | **First Steps**: https://www.zextras.com/ | + | **Method 3**: https://community.zextras.com/ |
- | **Requirements**: https://www.zimbra.com/ | + | See also **[[internet:mail:zimbra: |
**Migration Howto**: https:// | **Migration Howto**: https:// | ||
- | ===== Ubuntu Server ===== | + | :!: Set the **[[internet: |
- | Install the latest supported Ubuntu Server OS (Ubuntu 20.04 LTS as of this writing). | + | <note warning> |
- | Install SSH server and don't change the port. | + | ===== Zextras Backup Migration ===== |
- | ===== Install Zimbra ===== | + | **Read this entire page first: [[https:// |
- | Get the latest Zimbra OSE installer from Zextras (as root): | + | :!: If you are migrating from one Zimbra ZCS server to another, this is the way to go. It is fairly simple and very effective. |
- | < | + | * Accounts |
- | cd ~ | + | * CoS |
- | wget download.zextras.com/ | + | |
- | tar -xzvf zcs-9.0.0_OSE_UBUNTU20_latest-zextras.tgz | + | * Calendar Items |
- | </ | + | * Briefcase Items |
+ | * Drive Items | ||
+ | * Preferences | ||
+ | * Etc. | ||
+ | ==== Overview ==== | ||
+ | <note tip>For Zextras notifications regarding command line backup actions, see **Zimbra Admin -> Zextras -> Notifications**. </ | ||
+ | <note tip>For best performance, | ||
- | :!: Set the **[[internet: | + | <note tip>For best performance, |
+ | - Ensure that **Zextras Backup** is installed on **both** the source and destination servers | ||
+ | * You can configure Zextras Backup on the destination server permanently | ||
+ | - **Disable Zextras Backup Realtime Scanner** on both servers | ||
+ | - **Disable scheduled SmartScans** on both servers | ||
+ | - **Mount** the backup media on the source server | ||
+ | * **Set permissions** to '' | ||
+ | * Usually ''/ | ||
+ | - Run a Zextras Backup **SmartScan** backup on the old server | ||
+ | * Initializing Zextras Backup will run a SmartScan | ||
+ | * May take hours | ||
+ | * Do not run another Zextras Baackup (SmartScan) on the source server until you are ready for the final cutover | ||
+ | - **Dismount** the backup media from the source server | ||
+ | - **Mount** the backup media on the destination server | ||
+ | * Use a **temporary mount point** such as ''/ | ||
+ | * **Reset the permissions** to '' | ||
+ | - **Start** the restore | ||
+ | * Use **multiple threads** for a quicker restore | ||
+ | * May take days | ||
+ | - **Dismount** the backup media from the destination server | ||
+ | - **Mount** the migration backup media back on the source server | ||
+ | * Use exactly the **same mount point** previously used | ||
+ | * **Reset the permissions** to '' | ||
+ | - When you want to do the actual migration, **stop mail flow** on port 25 | ||
+ | * **Verify** the mail has stopped flowing | ||
+ | * Incoming mail will be delayed | ||
+ | - Run another (final) **SmartScan** on the source server | ||
+ | * It won't take long as it's an incremental backup | ||
+ | - **Dismount** the migration backup media from the source server | ||
+ | - **Mount** the migration backup media on the destination server | ||
+ | * Use a **temporary mount point** such as ''/ | ||
+ | * **Reset the permissions** to '' | ||
+ | - **Start** the restore | ||
+ | * Use **multiple threads** for a quicker restore | ||
+ | * This restore will be much quicker | ||
+ | * May still take hours depending on how much mail has flowed since the first pass | ||
+ | - **Dismount** the migration backup media from the destination server | ||
+ | - **Enable Zextras Backup Realtime Scanner** on the destination server | ||
+ | - **Enable scheduled SmartScans** on the destination server | ||
- | ---- | ||
- | DELETEME Info below this point is old. | + | ==== Restore ==== |
+ | < | ||
+ | mkdir /mnt/tmp | ||
+ | chmod 777 /mnt/tmp/ | ||
+ | mount -t nfs ip.of.nfs.svr:/ | ||
+ | chown -R zimbra: | ||
+ | su - zimbra | ||
+ | zxsuite backup doExternalRestore /mnt/tmp concurrent_accounts 5 | ||
+ | </ | ||
+ | ==== Verify Proxy Settings ==== | ||
- | **Zextras - Migrate to Network Edition**: | + | Check all domains: |
- | https:// | + | < |
+ | for dom in $(zmprov gad); do zmprov gd $dom zimbraPublicServiceProtocol zimbraPublicServiceHostname zimbraPublicServicePort; | ||
+ | </file> | ||
- | **Zextras - Migrate to OSE**: | + | Modify all domains: |
- | https://wiki.zextras.com/wiki/ZxBackup: | + | < |
+ | for dom in $(zmprov gad); do zmprov md $dom zimbraPublicServiceProtocol | ||
+ | </file> | ||
- | <note warning> | + | |
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
+ | DELETEME Info below this point is old. | ||
===== CLI ===== | ===== CLI ===== | ||
Line 169: | Line 230: | ||
==== Import ==== | ==== Import ==== | ||
+ | |||
+ | <note tip>The '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | :!: '' | ||
+ | |||
+ | |||
+ | <note tip>If you get a timeout error, try changing this setting: | ||
+ | |||
+ | < | ||
+ | zmlocalconfig socket_so_timeout | ||
+ | zmlocalconfig -e socket_so_timeout=3000000 | ||
+ | |||
+ | # change it back when you complete the import(s) | ||
+ | zmlocalconfig -e socket_so_timeout=30000 | ||
+ | zmlocalconfig --reload | ||
+ | </ | ||
=== Merge with Existing === | === Merge with Existing === | ||
Line 196: | Line 278: | ||
See also **[[internet: | See also **[[internet: | ||
- | ===== Zextras Migration ===== | ||
- | **Read this entire page first: [[https:// | ||
- | :!: If you are migrating from one Zimbra ZCS server to another, this is the way to go. It is fairly simple and very effective. | ||
- | |||
- | * Accounts | ||
- | * CoS | ||
- | |||
- | * Calendar Items | ||
- | * Briefcase Items | ||
- | * Drive Items | ||
- | * Preferences | ||
- | * Etc. | ||
- | |||
- | ==== Overview ==== | ||
- | |||
- | <note tip>For best performance, | ||
- | |||
- | <note tip>For best performance, | ||
- | |||
- | - Ensure that **Zextras Backup** is installed on **both** the source and destination servers | ||
- | * You can configure Zextras Backup on the destination server permanently | ||
- | - **Disable Zextras Backup Realtime Scanner** on both servers | ||
- | - **Disable scheduled SmartScans** on both servers | ||
- | - **Mount** the backup media on the source server | ||
- | * **Set permissions** to '' | ||
- | * Usually ''/ | ||
- | - Run a Zextras Backup **SmartScan** backup on the old server | ||
- | * Initializing Zextras Backup will run a SmartScan | ||
- | * May take hours | ||
- | * Do not run another Zextras Baackup (SmartScan) on the source server until you are ready for the final cutover | ||
- | - **Dismount** the backup media from the source server | ||
- | - **Mount** the backup media on the destination server | ||
- | * Use a **temporary mount point** such as ''/ | ||
- | * **Reset the permissions** to '' | ||
- | - **Start** the restore | ||
- | * Use **multiple threads** for a quicker restore | ||
- | * May take days | ||
- | - **Dismount** the backup media from the destination server | ||
- | - **Mount** the migration backup media back on the source server | ||
- | * Use exactly the **same mount point** previously used | ||
- | * **Reset the permissions** to '' | ||
- | - When you want to do the actual migration, **stop mail flow** on port 25 | ||
- | * **Verify** the mail has stopped flowing | ||
- | * Incoming mail will be delayed | ||
- | - Run another (final) **SmartScan** on the source server | ||
- | * It won't take long as it's an incremental backup | ||
- | - **Dismount** the migration backup media from the source server | ||
- | - **Mount** the migration backup media on the destination server | ||
- | * Use a **temporary mount point** such as ''/ | ||
- | * **Reset the permissions** to '' | ||
- | - **Start** the restore | ||
- | * Use **multiple threads** for a quicker restore | ||
- | * This restore will be much quicker | ||
- | * May still take hours depending on how much mail has flowed since the first pass | ||
- | - **Dismount** the migration backup media from the destination server | ||
- | - **Enable Zextras Backup Realtime Scanner** on the destination server | ||
- | - **Enable scheduled SmartScans** on the destination server | ||
===== Migrate a Domain Off Your Server ===== | ===== Migrate a Domain Off Your Server ===== |