-
Zextras Carbonio 23.6.0
-
Carbonio Community Edition
-
Suite for Zimbra
- Articles coming soon
External Recovery
Note
It is possible to run an External Restore with the same infrastructure as destination, but this is a rather advanced technique and will be discussed in the Backup Advanced Techniques Chapter.
Skip Domain Provisioning
zextras$ carbonio backup doexternalrestore /opt/backup/zextras/ accounts john@example.com,alice@example.com domains example.com skip_domain_provisioning true
When utilising the skip_domain_provisioning
option, the process that is described below does not apply; just the Restore all Accounts’ Attributes step will be carried out in Phase 1 because no domain configuration will be affected.
Important
Two points of the External Restore must be highlighted:
The External Restore is quite a complex and resource-intensive procedure; to minimise its impact on the current server’s operations, read the Before You Start section below for a few tips.
All commands and operations must be run on the destination server.
Operation Started notification
Read Server Backup Data
Create empty Domains
Create needed COS (only those effectively used by the imported accounts)
Create empty DLs
Create empty Accounts
Restore all Accounts’ attributes
Restore all Domains’ attributes
Restore all DLs’ attributes and share information
PHASE 1 Feedback Notification
Restore all Items
Restore all Mountpoints and Datasources
Operation Ended notification with complete feedback
Container Restore
Inbox/Zextras
(which is also its Backup Path) and subsequently deleting some messages from there that were in a backup. These messages are restored together with any other messages that may already be present in theInbox/Zextras
folder when an External Restore is performed. In other words, since the restored folder and an existent folder both share the same Backup Path, the restored messages are saved there.Before You Begin
/opt/zextras/backup/zextras
), then initialising the Backup.- Disable the RealTime Scanner if Carbonio Backup has already been initialised on the destination server to optimise memory utilisation and I/O performance.
- Advanced users can modify or deactivate the RedoLog for the duration of the import to decrease I/O overhead and the amount of disc space required for the migration.
- It is feasible to enable compression on your current main volume before beginning the import to consume less disc space overall. It is feasible to establish a new, uncompressed primary disc, set it to
Current
, and convert the previous one toSecondary
. if you do not want to utilise a compressed primary drive after migration. The powerstore component is required for this operation. - Check out the section on multithreading to speed up the restore if you want to utilise the CLI.
Making use of an external restore
zextras$ carbonio backup doExternalRestore *source_path* [param VALUE[,VALUE]]
zextras$ carbonio backup doExternalRestore /path/to/data/ accounts john@example.com,jack@example.com domains example.com filter_deleted false skip_system_accounts false
Restores the example.com domain, including all system accounts, and the john@example.com and jack@example.com accounts from a backup located in /path/to/data/
Hint
At the end of the operation, you can check that the configuration of the new mailbox is the same by running the command carbonio config dump
(See zextras_config_full_cli).
Using multithreading to expedite the restore
concurrent_accounts
argument, considerably accelerating the restoration process. This functionality is only accessible through CLI.zextras$ carbonio backup doExternalRestore /tmp/external1 domains example0.com,example1.com concurrent_accounts 5
Restores the example0.com and example1.com domain, excluding system accounts, restoring 5 accounts at same time from a backup located in /tmp/external1
Warning
Albeit resource consumption does not grow linearly with the number of accounts restored at the same time, it can easily become taxing. Start from a low number of concurrent accounts, and raise it according to your server’s performance.
After the Restoration Message Deduplication:
After an External Restore, it is strongly advised to do a volume-wide deduplication using the Zextras Powerstore component because the native deduplication mechanism might not work well while consecutively importing accounts.