2018-06-07 14:22:48 +02:00
<!-- Modal backup failed -->
< div class = "modal fade" id = "createBackupFailedModal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h4 class = "modal-title" > Unable to create backup< / h4 >
< / div >
< div class = "modal-body" >
{{ createBackup.errorMessage }}
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-success" data-dismiss = "modal" > OK< / button >
< / div >
< / div >
< / div >
< / div >
<!-- modal backup config -->
< div class = "modal fade" id = "configureBackupModal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h4 class = "modal-title" > Configure Backup Storage< / h4 >
< / div >
< div class = "modal-body" >
< form name = "configureBackupForm" role = "form" novalidate ng-submit = "configureBackup.submit()" autocomplete = "off" >
< fieldset >
< p class = "has-error text-center" ng-show = "configureBackup.error" > {{ configureBackup.error.generic }}< / p >
< div class = "form-group" >
2019-12-18 14:29:42 -08:00
< label class = "control-label" for = "storageProviderProvider" > Storage provider < sup > < a ng-href = "{{ config.webServerOrigin }}/documentation/backups/#storage-providers" class = "help" target = "_blank" > < i class = "fa fa-question-circle" > < / i > < / a > < / sup > < / label >
2020-05-12 14:57:44 -07:00
< p class = "small text-info" ng-show = "backupConfig.provider !== configureBackup.provider" > Backups in the old storage location have to be removed manually.< / p >
2020-05-12 21:41:35 -07:00
< select class = "form-control" id = "storageProviderProvider" ng-model = "configureBackup.provider" ng-options = "a.value as a.name for a in storageProvider" ng-change = configureBackup.clearProviderFields() > < / select >
2018-06-07 14:22:48 +02:00
< / div >
<!-- Noop -->
< div class = "form-group" ng-show = "configureBackup.provider === 'noop'" >
< p class = "has-error" >
This option breaks the backup and restore functionality of Cloudron and should only be used for testing. Please make sure the server is completely backed up using alternate means.
< / p >
< / div >
<!-- Filesystem -->
2020-03-09 13:28:06 -07:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.backupFolder || !configureBackup.backupFolder }" ng-show = "configureBackup.provider === 'filesystem'" >
2018-06-07 14:22:48 +02:00
< label class = "control-label" for = "inputConfigureBackupFolder" > Local backup directory< / label >
< input type = "text" class = "form-control" ng-model = "configureBackup.backupFolder" id = "inputConfigureBackupFolder" name = "backupFolder" ng-disabled = "configureBackup.busy" placeholder = "Directory for backups" ng-required = "configureBackup.provider === 'filesystem'" >
2020-03-09 13:28:06 -07:00
< / div >
2018-06-07 14:22:48 +02:00
2020-03-09 13:28:06 -07:00
< div class = "checkbox" ng-show = "configureBackup.provider === 'filesystem'" >
< label >
< input type = "checkbox" ng-model = "configureBackup.externalDisk" id = "inputConfigureExternalDisk" > Backup directory is an external EXT4 Disk< / input >
< / label >
2018-06-07 14:22:48 +02:00
< / div >
< div class = "checkbox" ng-show = "configureBackup.provider === 'filesystem'" >
< label >
< input type = "checkbox" ng-model = "configureBackup.useHardlinks" id = "inputConfigureUseHardlinks" > Use hardlinks< / input >
< / label >
< / div >
<!-- S3/Minio/SOS/GCS -->
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.endpoint }" ng-show = "configureBackup.provider === 'minio' || configureBackup.provider === 's3-v4-compat'" >
< label class = "control-label" for = "inputConfigureBackupEndpoint" > Endpoint< / label >
< input type = "text" class = "form-control" ng-model = "configureBackup.endpoint" id = "inputConfigureBackupEndpoint" name = "endpoint" ng-disabled = "configureBackup.busy" placeholder = "URL of Minio/S3 Compatible" ng-required = "configureBackup.provider === 'minio' || configureBackup.provider === 's3-v4-compat'" >
< / div >
< div class = "checkbox" ng-show = "configureBackup.provider === 'minio' || configureBackup.provider === 's3-v4-compat'" >
< label >
< input type = "checkbox" ng-model = "configureBackup.acceptSelfSignedCerts" id = "inputConfigureBackupSelfSigned" > Accept Self-signed certificate< / input >
< / label >
< / div >
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.bucket }" ng-show = "s3like(configureBackup.provider) || configureBackup.provider === 'gcs'" >
< label class = "control-label" for = "inputConfigureBackupBucket" > Bucket name< / label >
< input type = "text" class = "form-control" ng-model = "configureBackup.bucket" id = "inputConfigureBackupBucket" name = "bucket" ng-disabled = "configureBackup.busy" ng-required = "s3like(configureBackup.provider)" >
< / div >
2018-09-05 17:32:53 -07:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.prefix }" ng-show = "configureBackup.provider !== 'filesystem' && configureBackup.provider !== 'noop'" >
2018-06-07 14:22:48 +02:00
< label class = "control-label" for = "inputConfigureBackupPrefix" > Prefix< / label >
< input type = "text" class = "form-control" ng-model = "configureBackup.prefix" id = "inputConfigureBackupPrefix" name = "prefix" ng-disabled = "configureBackup.busy" placeholder = "Prefix for backup file names" >
< / div >
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.region }" ng-show = "configureBackup.provider === 's3'" >
< label class = "control-label" for = "inputConfigureBackupS3Region" > Region< / label >
< select class = "form-control" name = "region" id = "inputConfigureBackupS3Region" ng-model = "configureBackup.region" ng-options = "a.value as a.name for a in s3Regions" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 's3'" > < / select >
< / div >
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.region }" ng-show = "configureBackup.provider === 'digitalocean-spaces'" >
< label class = "control-label" for = "inputConfigureBackupDORegion" > Region< / label >
< select class = "form-control" name = "region" id = "inputConfigureBackupDORegion" ng-model = "configureBackup.endpoint" ng-options = "a.value as a.name for a in doSpacesRegions" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 'digitalocean-spaces'" > < / select >
< / div >
2018-10-27 14:44:13 -07:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.region }" ng-show = "configureBackup.provider === 'exoscale-sos'" >
< label class = "control-label" for = "inputConfigureBackupExoscaleRegion" > Region< / label >
< select class = "form-control" name = "region" id = "inputConfigureBackupExoscaleRegion" ng-model = "configureBackup.endpoint" ng-options = "a.value as a.name for a in exoscaleSosRegions" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 'exoscale-sos'" > < / select >
< / div >
2019-07-22 16:34:16 -07:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.region }" ng-show = "configureBackup.provider === 'wasabi'" >
< label class = "control-label" for = "inputConfigureBackupWasabiRegion" > Region< / label >
< select class = "form-control" name = "region" id = "inputConfigureBackupWasabiRegion" ng-model = "configureBackup.endpoint" ng-options = "a.value as a.name for a in wasabiRegions" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 'wasabi'" > < / select >
< / div >
2019-04-12 10:04:26 -07:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.region }" ng-show = "configureBackup.provider === 'scaleway-objectstorage'" >
< label class = "control-label" for = "inputConfigureBackupScalewayRegion" > Region< / label >
< select class = "form-control" name = "region" id = "inputConfigureBackupScalewayRegion" ng-model = "configureBackup.endpoint" ng-options = "a.value as a.name for a in scalewayRegions" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 'scaleway-objectstorage'" > < / select >
< / div >
2020-02-26 09:08:34 -08:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.region }" ng-show = "configureBackup.provider === 'linode-objectstorage'" >
< label class = "control-label" for = "inputConfigureBackupLinodeRegion" > Region< / label >
< select class = "form-control" name = "region" id = "inputConfigureBackupLinodeRegion" ng-model = "configureBackup.endpoint" ng-options = "a.value as a.name for a in linodeRegions" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 'linode-objectstorage'" > < / select >
< / div >
2020-04-29 12:54:19 -07:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.region }" ng-show = "configureBackup.provider === 'ovh-objectstorage'" >
< label class = "control-label" for = "inputConfigureBackupOvhRegion" > Region< / label >
< select class = "form-control" name = "region" id = "inputConfigureBackupOvhRegion" ng-model = "configureBackup.endpoint" ng-options = "a.value as a.name for a in ovhRegions" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 'ovh-objectstorage'" > < / select >
< / div >
2020-02-26 09:08:34 -08:00
2018-06-07 14:22:48 +02:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.accessKeyId }" ng-show = "s3like(configureBackup.provider)" >
< label class = "control-label" for = "inputConfigureBackupAccessKeyId" > Access key id< / label >
< input type = "text" class = "form-control" ng-model = "configureBackup.accessKeyId" id = "inputConfigureBackupAccessKeyId" name = "accessKeyId" ng-disabled = "configureBackup.busy" ng-required = "s3like(configureBackup.provider)" >
< / div >
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.secretAccessKey }" ng-show = "s3like(configureBackup.provider)" >
< label class = "control-label" for = "inputConfigureBackupSecretAccessKey" > Secret access key< / label >
< input type = "text" class = "form-control" ng-model = "configureBackup.secretAccessKey" id = "inputConfigureBackupSecretAccessKey" name = "secretAccessKey" ng-disabled = "configureBackup.busy" ng-required = "s3like(configureBackup.provider)" >
< / div >
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.gcsKeyInput }" ng-show = "configureBackup.provider === 'gcs'" >
< label class = "control-label" for = "gcsKeyInput" > Service Account Key< / label >
< div class = "input-group" >
< input type = "file" id = "gcsKeyFileInput" style = "display:none" / >
< input type = "text" class = "form-control" placeholder = "Service Account Key" ng-model = "configureBackup.gcsKey.keyFileName" id = "gcsKeyInput" name = "cert" onclick = "getElementById('gcsKeyFileInput').click();" style = "cursor: pointer;" ng-disabled = "configureBackup.busy" ng-required = "configureBackup.provider === 'gcs'" >
< span class = "input-group-addon" >
< i class = "fa fa-upload" onclick = "getElementById('gcsKeyFileInput').click();" > < / i >
< / span >
< / div >
< / div >
< div class = "form-group" ng-show = "configureBackup.provider !== 'noop'" >
2019-12-18 14:29:42 -08:00
< label class = "control-label" for = "storageFormat" > Storage Format < sup > < a ng-href = "{{ config.webServerOrigin }}/documentation/backups/#backup-formats" class = "help" target = "_blank" > < i class = "fa fa-question-circle" > < / i > < / a > < / sup > < / label >
2020-05-12 14:57:44 -07:00
< p class = "small text-info" ng-show = "backupConfig.format !== configureBackup.format" > Previous backups using the old storage format have to be removed manually.< / p >
< select class = "form-control" id = "storageFormat" ng-model = "configureBackup.format" ng-options = "a.value as a.name for a in formats" > < / select >
2018-06-07 14:22:48 +02:00
< / div >
2018-08-13 22:40:02 -07:00
< div class = "form-group" ng-show = "configureBackup.provider !== 'noop'" >
2019-12-18 14:29:42 -08:00
< label class = "control-label" for = "storageInterval" > Backup Interval< / label >
2018-08-13 22:40:02 -07:00
< select class = "form-control" id = "storageInterval" ng-model = "configureBackup.intervalSecs" ng-options = "a.value as a.name for a in intervalTimes" > < / select >
< / div >
2018-06-07 14:22:48 +02:00
< div class = "form-group" ng-show = "configureBackup.provider !== 'noop'" >
2020-05-14 16:41:55 -07:00
< label class = "control-label" for = "storageRetention" > Retention Policy< / label >
2020-05-14 16:27:06 -07:00
< select class = "form-control" id = "storageRetention" ng-model = "configureBackup.retentionPolicy" ng-options = "a.value as a.name for a in retentionPolicies" > < / select >
2018-06-07 14:22:48 +02:00
< / div >
2020-05-12 10:54:15 -07:00
< div class = "form-group" ng-class = "{ 'has-error': configureBackup.error.password }" ng-show = "configureBackup.provider !== 'noop'" >
< label class = "control-label" for = "inputConfigureBackupPassword" > Encryption Password (optional) < sup > < a ng-href = "{{ config.webServerOrigin }}/documentation/backups/#encryption" class = "help" target = "_blank" > < i class = "fa fa-question-circle" > < / i > < / a > < / sup > < / label >
2020-05-12 21:30:52 -07:00
< p class = "small" > Save this passphrase in a safe place. Cloudron does not store this password. Backups cannot be decrypted without the passphrase< / p >
2020-05-12 10:54:15 -07:00
< input type = "text" class = "form-control" name = "password" ng-model = "configureBackup.password" id = "inputConfigureBackupPassword" name = "prefix" ng-disabled = "configureBackup.busy" placeholder = "Passphrase used to encrypt the backups" >
2018-06-07 14:22:48 +02:00
< / div >
< input class = "ng-hide" type = "submit" ng-disabled = "configureBackupForm.$invalid" / >
< / fieldset >
< / form >
< / div >
< div class = "modal-footer " >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Cancel< / button >
2020-05-12 21:43:35 -07:00
< button type = "submit" class = "btn btn-outline btn-success pull-right" ng-click = "configureBackup.submit()" ng-disabled = "configureBackupForm.$invalid || configureBackup.busy" > < i class = "fa fa-circle-notch fa-spin" ng-show = "configureBackup.busy" > < / i > < span > Save< / span > < / button >
2018-06-07 14:22:48 +02:00
< / div >
< / div >
< / div >
< / div >
< div class = "content" >
< div class = "text-left" >
< h1 > Backups< / h1 >
< / div >
< div class = "card" style = "margin-bottom: 15px;" >
2020-04-03 10:36:51 -07:00
< p > Cloudron makes a complete backup of your system based on this configuration.
< span ng-show = "manualBackupApps.length" >
The following apps have automatic backups disabled:
< span ng-repeat = "app in manualBackupApps" >
< a ng-href = "/#/app/{{app.id}}/backups" > {{app.label || app.fqdn}}< / a > < span ng-hide = "$last" > ,< / span >
< / span >
< / span >
< / p >
2020-03-18 17:15:41 -07:00
2018-06-07 14:22:48 +02:00
< div class = "row" >
< div class = "col-xs-6" >
< span class = "text-muted" > Provider< / span >
< / div >
< div class = "col-xs-6 text-right" >
< span > {{ prettyProviderName(backupConfig.provider) }}< / span >
< / div >
< / div >
2020-02-04 12:49:36 -08:00
< div class = "row" >
2018-06-07 14:22:48 +02:00
< div class = "col-xs-6" >
< span class = "text-muted" > Location< / span >
< / div >
< div class = "col-xs-6 text-right" >
< span ng-show = "backupConfig.provider === 'filesystem'" > {{ backupConfig.backupFolder }}< / span >
2019-12-19 11:05:40 -08:00
< span ng-show = "backupConfig.provider !== 's3' && backupConfig.provider !== 'minio' && (s3like(backupConfig.provider) || backupConfig.provider === 'gcs')" > {{ backupConfig.bucket + (backupConfig.prefix ? '/' : '') + backupConfig.prefix }}< / span >
2019-11-18 11:04:06 -08:00
< span ng-show = "backupConfig.provider === 's3'" > {{ backupConfig.region + ' ' + backupConfig.bucket + (backupConfig.prefix ? '/' : '') + backupConfig.prefix }}< / span >
2019-12-19 11:05:40 -08:00
< span ng-show = "backupConfig.provider === 'minio'" > {{ backupConfig.endpoint + ' ' + backupConfig.bucket + (backupConfig.prefix ? '/' : '') + backupConfig.prefix }}< / span >
2018-06-07 14:22:48 +02:00
< / div >
< / div >
2020-02-04 12:49:36 -08:00
< div class = "row" >
2018-06-07 14:22:48 +02:00
< div class = "col-xs-6" >
< span class = "text-muted" > Storage Format< / span >
< / div >
< div class = "col-xs-6 text-right" >
2020-05-12 23:42:56 -07:00
< span > {{ backupConfig.format }} < i class = "fas fa-lock" ng-show = "backupConfig.password" > < / i > < / span >
2018-06-07 14:22:48 +02:00
< / div >
< / div >
< br / >
< div class = "row" >
< div class = "col-xs-4" >
< span class = "text-muted" > Backup ID< / span >
< / div >
< div class = "col-xs-8 text-right" >
< span ng-click-select ng-show = "lastBackup" > {{ lastBackup.id }}< / span >
< span ng-hide = "lastBackup" > No backups have been made yet< / span >
< / div >
< / div >
< div class = "row" >
< div class = "col-xs-6" >
< span class = "text-muted" > Last backup< / span >
< / div >
< div class = "col-xs-6 text-right" >
2019-10-24 09:33:56 -07:00
< span uib-tooltip = "{{ lastBackup.creationTime | prettyLongDate }}" ng-show = "lastBackup" > {{ lastBackup.creationTime | prettyDate }}< / span >
2018-06-07 14:22:48 +02:00
< span ng-hide = "lastBackup" > -< / span >
< / div >
< / div >
2020-04-20 18:21:35 +02:00
< br / >
2020-05-12 21:59:01 -07:00
< p ng-show = "lastBackup" >
For Cloudron restore or migration, < a href = "" ng-click = "downloadConfig()" > download< / a > the backup configuration.
< / p >
< br / >
2020-04-20 18:21:35 +02:00
< div class = "row" ng-show = "createBackup.busy" >
2018-12-09 20:59:32 +01:00
< div class = "col-md-12" style = "margin-bottom: 10px;" >
2020-04-20 18:21:35 +02:00
< div class = "progress progress-striped active animateMe" >
2018-06-07 14:22:48 +02:00
< div class = "progress-bar progress-bar-success" role = "progressbar" style = "width: {{ createBackup.percent }}%" > < / div >
< / div >
2020-04-20 18:21:35 +02:00
< p > {{ createBackup.message }}< / p >
2018-06-07 14:22:48 +02:00
< / div >
< / div >
2020-04-20 18:21:35 +02:00
< div class = "row" ng-show = "!createBackup.busy && !createBackup.active && createBackup.errorMessage" >
< div class = "col-md-12" >
< p class = "has-error" > {{ createBackup.errorMessage }}< / p >
2018-06-07 14:22:48 +02:00
< / div >
2020-04-20 18:21:35 +02:00
< / div >
< div class = "row" >
< div class = "col-md-12 text-right" >
2020-03-18 17:15:41 -07:00
< button class = "btn btn-outline btn-primary pull-right" ng-show = "user.role === 'owner'" ng-click = "configureBackup.show()" ng-disabled = "createBackup.busy" > Configure< / button >
2018-11-17 20:04:41 -08:00
< button class = "btn btn-outline btn-primary" ng-click = "createBackup.startBackup()" ng-show = "!createBackup.busy" style = "margin-right: 10px" > Backup now< / button >
< button class = "btn btn-outline btn-danger" ng-click = "createBackup.stopBackup()" ng-show = "createBackup.busy" style = "margin-right: 10px" > Stop Backup< / button >
2018-06-07 14:22:48 +02:00
< / div >
< / div >
< / div >
2018-06-15 09:38:47 -07:00
2018-06-16 11:14:45 -07:00
< div class = "text-left" >
2018-06-15 09:38:47 -07:00
< h3 > Logs< / h3 >
< / div >
< div class = "card card-large" style = "margin-bottom: 15px;" >
< div class = "row" >
< div class = "col-md-12" >
< p >
Please be careful when uploading these logs to a public server since they may contain sensitive information.
< / p >
2019-08-30 12:34:31 +02:00
< a class = "btn btn-primary pull-right" ng-href = "/logs.html?taskId={{createBackup.taskId}}" ng-disabled = "!createBackup.taskId" target = "_blank" > Show Logs< / a >
2018-06-15 09:38:47 -07:00
< / div >
< / div >
< / div >
2018-06-07 14:22:48 +02:00
< / div >