2018-10-04 21:04:31 +01:00
<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">
2018-10-12 17:54:15 +01:00
<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 }}
2018-10-04 21:04:31 +01:00
</div>
2018-10-12 17:54:15 +01:00
</div>
<div class="backup-restore">
<div class="restore-zone">
{{ # if session .isGlobalAdmin }}
<div class="explain">
2018-10-15 18:59:21 +01:00
<p class="font-weight-bold">
You should only perform a restore to an empty Documize instance.
2018-10-12 17:54:15 +01:00
</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="margin-top-20"></div>
{{ # ui / ui-checkbox selected = restoreSpec .overwriteOrg }}
Overwrite settings — SMTP, authentication, integrations and other settings
{{ / 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 }}
2018-10-15 18:59:21 +01:00
<button class="btn btn-danger mb-3" {{ action 'onShowRestoreModal' }} > {{ restoreButtonLabel }} </button>
2018-10-12 17:54:15 +01:00
{{ / if }}
{{ / if }}
</div>
</div>
2018-10-15 18:59:21 +01:00
</div>
2018-10-10 15:13:09 +01:00
2018-10-15 18:59:21 +01:00
<div id="confirm-restore-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">Confirm Restore</div>
<div class="modal-body">
<form onsubmit= {{ action 'onRestore' }} >
<div class="form-group">
<label for="delete-space-name">Please type RESTORE to commence the process</label>
{{ in put type = 'text' id = "confirm-restore" class = "form-control mousetrap" placeholder = "Please type RESTORE" value = confirmRestore }}
<small class="form-text text-muted">You should only restore to an empty Documize instance</small>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" onclick= {{ action 'onRestore' }} >Start Restore</button>
</div>
</div>
</div>
2018-10-12 17:54:15 +01:00
</div>