feat: lokalen Dump nach erfolgreichem Upload löschen
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -1,4 +1,4 @@
|
||||
import { createWriteStream, mkdirSync } from 'fs';
|
||||
import { createWriteStream, mkdirSync, unlinkSync } from 'fs';
|
||||
import { createGzip } from 'zlib';
|
||||
import { join } from 'path';
|
||||
import { spawn } from 'child_process';
|
||||
@@ -115,6 +115,7 @@ async function runBackup(): Promise<void> {
|
||||
);
|
||||
});
|
||||
|
||||
unlinkSync(localPath);
|
||||
console.log(`[backup] ${filename} → ${sshHost}:${remotePath}`);
|
||||
|
||||
// Backups älter als 30 Tage auf Remote löschen
|
||||
|
||||
Reference in New Issue
Block a user