feat(backups): add configurable CPU usage for volume compression

Add server-level compression CPU presets for volume backups and close the private key modal after saving.
This commit is contained in:
Andras Bacsai committed 2026-08-14 12:00:46 +02:00
1 parent fe1dc209b7
commit 857375f69c
9 files changed
+142 -9

No files matched your search

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('server_settings', function (Blueprint $table) {
$table->unsignedTinyInteger('backup_compression_cpu_percentage')->default(25);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('server_settings', function (Blueprint $table) {
$table->dropColumn('backup_compression_cpu_percentage');
});
}
};