fix: prefix rustic backups with rustic-repos in s3

This commit is contained in:
Elizabeth
2025-09-24 21:30:01 -05:00
parent d7e0ec3a84
commit 7645392b9c
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ class RusticConfigController extends Controller
// For S3, return the actual S3 path that rustic will use
$s3Config = config('backups.disks.rustic_s3');
$bucket = $s3Config['bucket'] ?? '';
$prefix = rtrim($s3Config['prefix'] ?? 'pterodactyl-backups/', '/');
$prefix = rtrim($s3Config['prefix'] ?? 'rustic-repos/', '/');
if (empty($bucket)) {
throw new \InvalidArgumentException('S3 bucket not configured for rustic backups');

View File

@@ -85,7 +85,7 @@ return [
'endpoint' => env('RUSTIC_S3_ENDPOINT', env('AWS_ENDPOINT')),
'region' => env('RUSTIC_S3_REGION', env('AWS_DEFAULT_REGION', 'us-east-1')),
'bucket' => env('RUSTIC_S3_BUCKET'),
'prefix' => env('RUSTIC_S3_PREFIX', 'pterodactyl-backups/'),
'prefix' => env('RUSTIC_S3_PREFIX', 'rustic-repos/'),
// S3 credentials
'key' => env('RUSTIC_S3_ACCESS_KEY_ID', env('AWS_ACCESS_KEY_ID')),