Backup and restore
Which databases, folders and files make up an installation, which of them you have to back up, and what to restore in which order.
An installation of M.App Enterprise keeps its state in databases, in the Warehouse folder and in a few configuration files. This page lists what you have to back up so that you can rebuild the installation on the same or on another server.
What to back up
| What | Where it is | Contains |
|---|---|---|
| Master database | The database you entered in the installer. | The list of tenants and their connections, the settings of Management, the license, the usage history and the logs of Management. |
| Tenant databases | One database per tenant. Management lists them under the connections of the tenants. | Everything configured in Studio: content, legends, apps, users, claims, plus the logs of the tenant. |
| Your data | The databases that you connected in Studio. | Your spatial data and attribute data. M.App Enterprise reads and writes it but does not back it up. |
| Warehouse | The folder you chose in the installer. | Per tenant: symbols, images, e-mail templates, workflows, mobile shells and files, and the caches. See below. |
| Configuration files | Web.config in the installation folder, and the .config files of the M.App Service and of the Tile Service. | The connection to the master database. Any setting you changed by hand. |
| HTTPS certificate | The Windows certificate store of the server. | The certificate with its private key. |
| Service account | Your password store. | The name and password of the account that runs the services and application pools. |
The license needs no separate backup. It is stored in the master database when you upload it in Management.
The Warehouse in detail
The Warehouse holds one folder per tenant, named after the tenant. Inside it:
| Folder | Contains | Back up? |
|---|---|---|
| Symbols | Graphics used by style sets. | Yes |
| AppData | Images of apps and the e-mail templates for activation and password reset. | Yes |
| Workflows | The workflow and form definitions, custom scripts, styles and uploaded files. | Yes |
| Shells | The shells of mobile apps. | Yes |
| ShellData | Files stored by mobile apps. | Yes |
| VectorCache | The cache of published vector data. | Optional. The Tile Service builds it again. |
| WmtsCache | The cache of WMTS services. | Optional. It is built again. |
Other folders in a tenant's folder are your own data, for example raster files. Back them up as well.
The caches can be large. If you leave them out, the map is slower after a restore until the caches are built again.
A single tenant
To copy or move one tenant, use the export in Management. See Import/Export a Tenant.
The export contains the configuration of the tenant and the folders Workflows, Symbols, AppData and Shells. It does not contain the caches, the files stored by mobile apps or your data. An export can only be imported into an installation of the same version.
Restore
- Restore the master database, all tenant databases and your data from the same point in time.
- Restore the Warehouse to the same path as before. The path is stored in the master database.
- Install the same version of M.App Enterprise and of the Tile Service that the backup was taken from. Enter the restored master database in the installer.
- Put your certificate back into the certificate store and select it in the installer.
- Open Management, check the list of tenants and the logs, then log in to Studio.