An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat: UI for backup retention settings
peaklabs-deve037ed738a34
diff --git a/resources/views/livewire/project/database/backup-edit.blade.php b/resources/views/livewire/project/database/backup-edit.blade.phpindex 59628636d7..1f3ee6913d 100644--- a/resources/views/livewire/project/database/backup-edit.blade.php+++ b/resources/views/livewire/project/database/backup-edit.blade.php@@ -72,7 +72,43 @@<x-forms.input label="Frequency" id="frequency" /><x-forms.input label="Timezone" id="timezone" disabledhelper="The timezone of the server where the backup is scheduled to run (if not set, the instance timezone will be used)" />- <x-forms.input label="Number of backups to keep (locally)" id="numberOfBackupsLocally" />+ </div>++ <h3 class="mt-6 mb-2 text-lg font-medium">Backup Retention Settings</h3>+ <div class="mb-4">+ <p>+ These settings control how long backups are kept.+ <ul>+ <li>Setting a value to 0 means unlimited retention.</li>+ <li>The retention rules work independently and whichever limit is reached first will trigger a cleanup of the older backups.</li>+ </ul>+ </p>+ </div>++ <div class="flex gap-6 flex-col">+ <div>+ <h4 class="mb-3 font-medium">Local Backup Retention</h4>+ <div class="flex gap-4">+ <x-forms.input label="Number of backups to keep" id="databaseBackupRetentionAmountLocally" type="number" min="0"+ helper="Keeps only the specified number of most recent backups on the server. Set to 0 for unlimited backups." />+ <x-forms.input label="Days to keep backups" id="databaseBackupRetentionDaysLocally" type="number" min="0"+ helper="Automatically removes backups older than the specified number of days. Set to 0 for no time limit." />+ </div>+ </div>++ @if ($backup->save_s3)+ <div>+ <h4 class="mb-3 font-medium">S3 Storage Retention</h4>+ <div class="flex gap-4">+ <x-forms.input label="Number of backups to keep" id="databaseBackupRetentionAmountS3" type="number" min="0"+ helper="Keeps only the specified number of most recent backups on S3 storage. Set to 0 for unlimited backups." />+ <x-forms.input label="Days to keep backups" id="databaseBackupRetentionDaysS3" type="number" min="0"+ helper="Automatically removes S3 backups older than the specified number of days. Set to 0 for no time limit." />+ <x-forms.input label="Maximum storage (GB)" id="databaseBackupRetentionMaxStorageS3" type="number" min="0"+ helper="When total size of all backups in the current backup job exceeds this limit in GB, the oldest backups will be removed. Set to 0 for unlimited storage." />+ </div>+ </div>+ @endif</div></div></form>