From ZeXtras Suite Wiki
|Language:||English • español • português|
The ZeXtras Backup Store
The ZeXtras Backup Store is the place where ZxBackup saves all its data.
The default folder is /opt/zimbra/backup/zextras/, but the Backup Path can be changed in the ZxBackup section of the ZeXtras Administration Zimlet. Similarly, an External Backup can be saved in any directory.
No Hardlinks are used, so the store can be on any filesystem as long as it is Case Sensitive.
Items in the Backup Path are compressed with the gzip algorithm and deduplicated, so a Backup Path will usually take between 50% and 75% of the total size of all Zimbra volumes.
The External Import procedures creates 2 kinds of Mapfiles:
- the map_[server_id] file, inside the Zextras Backup Store's root, contains the mapping between the account IDs in the Old and Current server.
- the id_mapper file, contained inside each imported account accounts subfolder, contains a list of mailitem mappings created during the Import procedure to keep tracks of the items imported into the account along with their id on the old server.
If you want to restart from scratch an already begun External Import operation, be sure to delete all the mapping files.
The structure of the ZxBackup store is the following:
tree /opt/zimbra/backup/zextras/ -L 1
As you can see, the first level of the folder tree contains 3 main directories:
accounts - contains all the accounts' data and informations
items - contains all kind of items (deduplicated)
server - contains server configurations
The map_[server_id] is created when importing accounts with the External Import feature, and contains the mapping between the account IDs in the Old and Current server. Using this file's name as an argument for the zxsuite backup doFixShares will fix the consistency of any share broken during the import procedure.
tree /opt/zimbra/backup/zextras/accounts -L 1
The accounts folder is a container for account informations and data. Each subfolder is named after the zimbraId of the respective account.
tree /opt/zimbra/backup/zextras/items -L 1
The items folder is a container for backupped items. It contains a set of directories named after the first TWO character of the respective item's hash.
tree /opt/zimbra/backup/zextras/server -L 1
The server folder is a container for server configurations backupped by the Live Full Scan. It contains a set of files named after the timestamp of the corrisponding Live Full Scan.
tree /opt/zimbra/backup/zextras/accounts/0051f1d5-82cc-40ee-8f29-dfa692a92ad8 -L 1
tree /opt/zimbra/backup/zextras/accounts/0051f1d5-82cc-40ee-8f29-dfa692a92ad8/items -L 2
Inside each "mailbox" folder there is the "account_info" file which contains all the LDAP data of the account and a group of folder/file couples inside the "items" folder containing all the metadata belonging to the items in the mailbox. An additional file named id_mapper, which contains a list of mailitem mappings, is created during the import procedure to keep tracks of the items imported to the account and their id on the Old and Current server.
tree /opt/zimbra/backup/zextras/items/00 -L 3
This is a view of one of the 4096 containers inside the items folder. Pretty straightforward, inside the "00" folder are contained all the items whose hash begins with "00". Please note that the ACTUAL DATA is contained here, as the "items" subfolder of a "mailbox hash" folder contains only the metadata.