@script
@endscript
Import Backup
@if ($unsupported)
Database restore is not supported.
@else
This is a destructive action, existing data will be replaced!
@if (str($resourceStatus)->startsWith('running'))
{{-- Restore Command Configuration --}}
@if ($resourceDbType === 'standalone-postgresql')
@if ($dumpAll)
@else
You can add "--clean" to drop objects before creating them, avoiding
conflicts.
You can add "--verbose" to log more things.
@endif
@elseif ($resourceDbType === 'standalone-mysql')
@if ($dumpAll)
@else
@endif
@elseif ($resourceDbType === 'standalone-mariadb')
@if ($dumpAll)
@else
@endif
@endif
{{-- Restore Type Selection Boxes --}}
Choose Restore Method
Restore from File
Upload a backup file or specify a file path on the server
@if (count($availableS3Storages) > 0)
Restore from S3
Download and restore a backup from S3 storage
@endif
{{-- File Restore Section --}}
@can('update', $this->resource)
Backup File
Or
File Information
Location:
Restore Database from File
This will perform the following actions:
- Copy backup file to database container
- Execute restore command
WARNING: This will REPLACE all existing data!
@endcan
{{-- S3 Restore Section --}}
@if (count($availableS3Storages) > 0)
@can('update', $this->resource)
Restore from S3
@foreach ($availableS3Storages as $storage)
@endforeach
Check File
@if ($s3FileSize)
File Information
Location: {{ $s3Path }} {{ formatBytes($s3FileSize ?? 0) }}
Restore Database from S3
This will perform the following actions:
- Download backup from S3 storage
- Copy file into database container
- Execute restore command
WARNING: This will REPLACE all existing data!
@endif
@endcan
@endif
{{-- Slide-over for activity monitor (all restore operations) --}}
Database Restore Output
@else
Database must be running to restore a backup.
@endif
@endif