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

37 lines
1.6 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 a database resource
2023-08-11 14:13:53 +00:00
into Coolify.
2024-06-24 15:20:56 +00:00
<x-forms.button class="mt-2" wire:click="add_coolify_database">Add Database</x-forms.button>
2023-08-11 14:13:53 +00:00
@endif
</div>
2023-08-11 18:48:52 +00:00
<div class="py-4">
<livewire:project.database.backup-executions :backup="$backup" />
2023-08-11 18:48:52 +00:00
</div>
2023-08-11 14:13:53 +00:00
</div>
</div>