mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(backups): let service databases choose the databases to back up
Closes #12432 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
33a6682791
commit
dbd211486b
@@ -24,9 +24,14 @@
|
||||
</x-slot:actions>
|
||||
|
||||
<div class="space-y-5">
|
||||
@php
|
||||
$isServiceSqlDatabase = $backup->database instanceof \App\Models\ServiceDatabase
|
||||
&& str($backup->database->databaseType())->contains(['postgres', 'mysql', 'mariadb']);
|
||||
@endphp
|
||||
@if ($backup->database_type === 'App\Models\StandalonePostgresql' && $backup->database_id !== 0
|
||||
|| $backup->database_type === 'App\Models\StandaloneMysql'
|
||||
|| $backup->database_type === 'App\Models\StandaloneMariadb')
|
||||
|| $backup->database_type === 'App\Models\StandaloneMariadb'
|
||||
|| $isServiceSqlDatabase)
|
||||
<div class="grid w-full gap-4">
|
||||
<x-forms.listbox id="dumpAll" label="Database selection" onChange="instantSave" :options="[
|
||||
['value' => true, 'label' => 'All databases'],
|
||||
@@ -67,7 +72,11 @@
|
||||
placeholder="Type a database and press Enter" />
|
||||
</div>
|
||||
<p class="mt-1.5 text-xs text-neutral-500 dark:text-fg-dim">
|
||||
Add one or more database names. Leave empty to include the default database.
|
||||
@if ($isServiceSqlDatabase)
|
||||
Add one or more database names. Leave empty to back up the database that the container env names.
|
||||
@else
|
||||
Add one or more database names. Leave empty to include the default database.
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user