Sprache: Deutsch · English
PostgreSQL-Backup per pg_dump – skriptbarer Custom-Format-Dump inkl. Parametererklärung.
HOW-TO ADMINISTRATOR STAND: JUL 2026 GILT FUER NUCLOS 4.2026.X
Auf dieser Seite
Die empfohlene, skriptbare Methode für ein PostgreSQL-Backup ist pg_dump im Custom-Format.
cmd öffnen.pg_dump -U postgres -h localhost -d nuclosdb -n nuclos -F c > /home/backup/nuclos.backup
| Option | Bedeutung |
|---|---|
| -U | Datenbank-Benutzer |
| -h | Server/Hostname |
| -d | Datenbankname |
| -n | Schemaname (Nuclos: nuclos) |
| -F c | Custom-Format (empfohlen, komprimiert, für pg_restore) |
Kontrolle
Prüfe nach dem Lauf, ob die Dateigröße plausibel ist. Für die Wiederherstellung eines Custom-Dumps pg_restore verwenden.