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

36 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))
2024-07-25 20:50:18 +00:00
<x-forms.button type="submit" wire:click="submit">
Save
</x-forms.button>
2023-08-11 14:13:53 +00:00
@endif
</div>
2024-07-25 20:50:18 +00:00
<div class="pb-4">Backup your Last Hour Cloud instance settings</div>
2023-08-11 14:13:53 +00:00
<div>
2023-08-11 16:14:58 +00:00
@if (isset($database))
2024-07-25 20:50:18 +00:00
<div class="flex flex-col gap-3 pb-4">
<div class="flex gap-2">
<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>
2024-07-25 20:50:18 +00:00
<div class="flex gap-2">
<x-forms.input label="User" readonly id="database.postgres_user" />
<x-forms.input type="password" label="Password" readonly id="database.postgres_password" />
</div>
</div>
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" />
2023-08-11 14:13:53 +00:00
@else
2024-07-25 20:50:18 +00:00
To configure automatic backup for your Last Hour Cloud instance, you first need to add a database resource
into Last Hour Cloud.
<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>
2024-07-25 20:50:18 +00:00
</div>