Nuclos pg_dump: PostgreSQL Backup Konsole, Skript, Custom Format, pg_restore, Schema nuclos, Sicherung. |
Sprache: Deutsch · English
PostgreSQL-Backup per pg_dump – skriptbarer Custom-Format-Dump inkl. Parametererklärung.
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) |
Prüfe nach dem Lauf, ob die Dateigröße plausibel ist. Für die Wiederherstellung eines Custom-Dumps |