fix: backup — mariadb-dump, --skip-ssl, SSH-Key per Volume in Compose

- mariadb-dump statt mysqldump (kein Deprecation-Warning in Alpine)
  via BACKUP_DUMP_CMD konfigurierbar (Fallback für lokale MySQL-Umgebung)
- --skip-ssl unterdrückt MariaDB-SSL-Warnung bei MYSQL_PWD-Nutzung
- docker-compose.prod.yml: BACKUP_SSH_URL + Key-Volume (BACKUP_SSH_KEY_FILE)
  damit SSH-Alias-Auflösung und Key-Zugriff im Container funktionieren

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 13:54:43 +02:00
parent d99a696ef0
commit 2e875ed1ad
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -34,9 +34,12 @@ async function runBackup(): Promise<void> {
'-o', 'BatchMode=yes',
];
const dumpBin = process.env.BACKUP_DUMP_CMD || 'mariadb-dump';
await new Promise<void>((resolve, reject) => {
const dump = spawn('mysqldump', [
const dump = spawn(dumpBin, [
`-h${dbHost}`, `-P${dbPort}`, `-u${dbUser}`,
'--skip-ssl',
`--ignore-table=${dbName}.beos`,
dbName,
], { env: { ...process.env, MYSQL_PWD: dbPass } });