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/25 14:02] 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:// |
+ | |||
+ | **Method 2**: https:// | ||
+ | |||
+ | **Method 3**: https:// | ||
See also **[[internet: | See also **[[internet: | ||
Line 10: | Line 14: | ||
<note warning> | <note warning> | ||
+ | |||
+ | ===== Zextras Backup 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 Zextras notifications regarding command line backup actions, see **Zimbra Admin -> Zextras -> Notifications**. </ | ||
+ | |||
+ | <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 | ||
+ | |||
+ | |||
+ | ==== 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 ==== | ||
+ | |||
+ | Check all domains: | ||
+ | |||
+ | < | ||
+ | for dom in $(zmprov gad); do zmprov gd $dom zimbraPublicServiceProtocol zimbraPublicServiceHostname zimbraPublicServicePort; | ||
+ | </ | ||
+ | |||
+ | Modify all domains: | ||
+ | |||
+ | < | ||
+ | for dom in $(zmprov gad); do zmprov md $dom zimbraPublicServiceProtocol https zimbraPublicServiceHostname zimbra.yourdomain.tld zimbraPublicServicePort 443; done | ||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 137: | 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 164: | 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 ===== |