mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 06:17:36 +00:00
feat(backups): support scheduled backups for application storage targets
Add polymorphic volume backup scheduling for persistent volumes and directories, expose schedule management via API, and reorganize backup configuration and execution views.
This commit is contained in:
1 parent
995ec5fbb6
commit
d7385ad0c4
60 files changed
+3570
-985
No files matched your search
@@ -1,11 +1,11 @@
|
||||
<form class="flex flex-col w-full gap-4 rounded-sm" wire:submit="submit">
|
||||
@if ($volumes->isEmpty())
|
||||
<div class="text-warning">Add a persistent volume before configuring a backup.</div>
|
||||
@if ($targets->isEmpty())
|
||||
<div class="text-warning">Add a persistent volume or directory mount before configuring a backup.</div>
|
||||
@else
|
||||
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
|
||||
<x-forms.select id="volumeId" label="Volume" required :disabled="$volumeLocked">
|
||||
@foreach ($volumes as $volume)
|
||||
<option value="{{ $volume->id }}">{{ $volume->name }}</option>
|
||||
<x-forms.select id="targetKey" label="Backup Target" required :disabled="$targetLocked">
|
||||
@foreach ($targets as $target)
|
||||
<option value="{{ $target['key'] }}">{{ $target['type'] }}: {{ $target['name'] }}</option>
|
||||
@endforeach
|
||||
</x-forms.select>
|
||||
<x-forms.input id="frequency" placeholder="0 0 * * * or daily"
|
||||
@@ -13,24 +13,6 @@
|
||||
label="Frequency" required />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 class="pb-2">S3</h2>
|
||||
@if ($definedS3s->isEmpty())
|
||||
<div class="text-sm text-neutral-600 dark:text-neutral-400">No validated S3 storages found.</div>
|
||||
@else
|
||||
<div class="flex flex-col gap-3">
|
||||
<x-forms.checkbox live id="saveToS3" label="Save to S3" />
|
||||
@if ($saveToS3)
|
||||
<x-forms.select id="s3StorageId" label="S3 Storage">
|
||||
@foreach ($definedS3s as $s3)
|
||||
<option value="{{ $s3->id }}">{{ $s3->name }}</option>
|
||||
@endforeach
|
||||
</x-forms.select>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<x-forms.button type="submit">Save</x-forms.button>
|
||||
@endif
|
||||
</form>
|
||||
Reference in new issue
Block a user