lasthourcloud/resources/views/livewire/settings/backup.blade.php

38 lines
1.7 KiB
PHP
Raw Normal View History

2023-08-11 14:13:53 +00:00
<div>
<div class="flex flex-col">
<div class="flex items-center gap-2">
<h2>Backup</h2>
2023-08-11 16:14:58 +00:00
@if (isset($database))
2023-08-11 14:13:53 +00:00
<x-forms.button type="submit" wire:click="submit">
Save
</x-forms.button>
@endif
</div>
<div class="pb-4">Backup your Coolify instance settings</div>
<div>
2023-08-11 16:14:58 +00:00
@if (isset($database))
2023-08-11 14:13:53 +00:00
<div class="flex flex-col gap-3 pb-4">
<div class="flex gap-2">
2023-08-11 16:14:58 +00:00
<x-forms.input label="UUID" readonly id="database.uuid" />
<x-forms.input label="Name" readonly id="database.name" />
<x-forms.input label="Description" id="database.description" />
2023-08-11 14:13:53 +00:00
</div>
<div class="flex gap-2">
2023-08-11 16:14:58 +00:00
<x-forms.input label="User" readonly id="database.postgres_user" />
<x-forms.input type="password" label="Password" readonly id="database.postgres_password" />
2023-08-11 14:13:53 +00:00
</div>
</div>
2023-12-07 18:06:32 +00:00
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" />
2023-08-11 14:13:53 +00:00
@else
To configure automatic backup for your Coolify instance, you first need to add as a database resource
into Coolify.
<x-forms.button wire:click="add_coolify_database">Add Database</x-forms.button>
@endif
</div>
2023-08-11 18:48:52 +00:00
<div class="py-4">
<h2 class="pb-4">Executions</h2>
<livewire:project.database.backup-executions :backup="$backup" :executions="$executions" />
</div>
2023-08-11 14:13:53 +00:00
</div>
</div>