Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos pg_dump: PostgreSQL backup console, script, custom format, pg_restore, schema nuclos, dump.

globe with meridians Language: Deutsch · English

hammer and wrench Postgres backup via console/script

PostgreSQL backup via pg_dump – scriptable custom-format dump incl. parameter explanation.

Status
colourPurple
titleHow-to
Status
colourBlue
titleAdministrator
Status
colourGreen
titleUpdated: Jul 2026
Status
colourGrey
titleapplies to Nuclos 4.2026.x

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2

The recommended, scriptable method for a PostgreSQL backup is pg_dump in custom format.

Steps

  1. Open a terminal or cmd.
  2. Run the following command:
Codeblock
languagebash
pg_dump -U postgres -h localhost -d nuclosdb -n nuclos -F c > /home/backup/nuclos.backup

Parameters

OptionMeaning
-Udatabase user
-hserver/host name
-ddatabase name
-nschema name (Nuclos: nuclos)
-F ccustom format (recommended, compressed, for pg_restore)
Tipp
titleVerification

After the run, check that the file size is plausible. Use pg_restore to restore a custom dump.

Related pages

gear Backup


Overview.

Open →

gear Create a Postgres backup


pgAdmin.

Open →