{{#if session.isGlobalAdmin}}

Documize Community is a multi-tenanted application enabling both "tech.mycompany.com" and "sales.mycompany.com" to run using the same executable/database. As a Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. The Documize Community Tenant Administrator can login to perform a tenant-level backup (e.g. marketing.mycompany.com).

{{else}}

Documize Community is a multi-tenanted application enabling both "tech.mycompany.com" and "sales.mycompany.com" to run using the same executable/database. A Documize Community Global Administrator, you will be performing a complete system-wide backup across all tenants. As a Documize Community Tenant Administrator you can perform a tenant-level backup (e.g. marketing.mycompany.com).

{{/if}}

It can take several minutes to complete the backup process — please be patient while the backup operation is in progress.

{{#ui/ui-checkbox selected=backupSpec.retain}} Retain backup file on server {{/ui/ui-checkbox}}
{{#if backupRunning}}

Backup running, please wait...

{{else}} {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Database label=(concat "BACKUP TENANT (" appMeta.appHost ")") onClick=(action "onBackup")}} {{#if session.isGlobalAdmin}} {{ui/ui-button-gap}} {{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Database label="BACKUP SYSTEM" onClick=(action "onSystemBackup")}} {{/if}} {{/if}} {{#if backupFailed}}
Backup failed — please check server logs
{{/if}} {{#if backupSuccess}}
Backup successful ({{backupFilename}})
{{/if}}
{{#if session.isGlobalAdmin}}

Restore from a system backup should only be performed on an empty Documize Community database.

{{/if}}

Restore operation will re-create users, groups, permissions, spaces, categories and content.

It can take several minutes to complete the restore process — please be patient while the restore operation is in progress.

{{#if restoreFailed}}
Restore failed — please check server logs
{{else if restoreSuccess}}
Restore completed — restart your browser and log in
{{else}} {{#if restoreUploadReady}} {{ui/ui-button color=constants.Color.Red light=false icon=constants.Icon.Database label=restoreButtonLabel onClick=(action "onShowRestoreModal")}} {{/if}} {{/if}}