mirror of
https://github.com/documize/community.git
synced 2025-07-18 20:59:43 +02:00
89 lines
No EOL
3.4 KiB
Handlebars
89 lines
No EOL
3.4 KiB
Handlebars
<div class="row">
|
|
<div class="col">
|
|
<div class="view-customize">
|
|
<h1 class="admin-heading">Backup & Restore</h1>
|
|
<h2 class="sub-heading">Export all documents and settings to a single ZIP file.</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="view-customize">
|
|
|
|
<div class="backup-restore">
|
|
<div class="backup-zone">
|
|
{{#if session.isGlobalAdmin}}
|
|
<div class="explain">
|
|
<p>
|
|
Documize is a multi-tenanted application enabling both "tech.mycompany.com" and "sales.mycompany.com" to run using the same executable/database.
|
|
As a Documize <b>Global</b> Administrator, you will be performing a complete system-wide backup across all tenants.
|
|
A regular Documize Administrator can login to perform just a tenant-level backup (e.g. marketing.mycompany.com).
|
|
</p>
|
|
</div>
|
|
{{/if}}
|
|
<p class="font-weight-bold">It can take several minutes to complete the backup process — please be patient while the backup operation is in progress</p>
|
|
|
|
<div class="margin-top-30 margin-bottom-20">
|
|
{{#ui/ui-checkbox selected=backupSpec.retain}}
|
|
Retain backup file on server
|
|
{{/ui/ui-checkbox}}
|
|
</div>
|
|
<button class="btn btn-success mb-3" {{action 'onBackup'}}>{{buttonLabel}}</button>
|
|
|
|
{{#if backupFailed}}
|
|
<div class="backup-fail">Backup failed — please check server logs</div>
|
|
{{/if}}
|
|
{{#if backupSuccess}}
|
|
<div class="backup-success">Backup successful ({{backupFilename}})</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="backup-restore">
|
|
<div class="restore-zone">
|
|
{{#if session.isGlobalAdmin}}
|
|
<div class="explain">
|
|
<p class="font-weight-bold">WARNING:</p>
|
|
<p>
|
|
You should only perform a restore on a <b>new Documize instance</b> and NOT on the original instance.
|
|
Duplicate data might exist if you restore onto the same instance without first removing previous data.
|
|
</p>
|
|
</div>
|
|
{{/if}}
|
|
<p class="font-weight-bold">It can take up to an hour to complete the restore process — please be patient while the restore operation is in progress</p>
|
|
|
|
<div class="margin-top-30 margin-bottom-20">
|
|
<div class="custom-file">
|
|
<input type="file" class="custom-file-input" id="restore-file" accept="application/zip" multiple=false onchange={{action "upload"}}>
|
|
<label class="custom-file-label" for="restore-file">Choose backup file</label>
|
|
</div>
|
|
<div class="restore-upload-busy">
|
|
{{#if restoreUploadReady}}
|
|
<div class="ready">Ready to start restore</div>
|
|
{{/if}}
|
|
{{#if restoreUploading}}
|
|
<img src="/assets/img/busy-gray.gif" />
|
|
<div class="wait">Uploading file</div>
|
|
{{/if}}
|
|
</div>
|
|
<div class="margin-top-20"></div>
|
|
{{#ui/ui-checkbox selected=restoreSpec.overwriteOrg}}
|
|
Overwrite settings — SMTP, authentication, integrations and other settings
|
|
{{/ui/ui-checkbox}}
|
|
{{#ui/ui-checkbox selected=restoreSpec.recreateUsers}}
|
|
Recreate user accounts — users, groups, permissions
|
|
{{/ui/ui-checkbox}}
|
|
</div>
|
|
|
|
{{#if restoreFailed}}
|
|
<div class="restore-fail">Restore failed — please check server logs</div>
|
|
{{else if restoreSuccess}}
|
|
<div class="restore-success">Restore completed — restart your browser and log in</div>
|
|
{{else}}
|
|
{{#if restoreUploadReady}}
|
|
<button class="btn btn-danger mb-3" {{action 'onRestore'}}>{{restoreButtonLabel}}</button>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
|
|
</div> |