From 190b96d3f4f8c3270581c4ea2473f77da42d0336 Mon Sep 17 00:00:00 2001 From: Matthias Lodner Date: Tue, 2 Jul 2024 17:29:55 +0200 Subject: [PATCH] vault backup: 2024-07-02 17:29:55 --- Geschäft/IT/Postgres.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Geschäft/IT/Postgres.md b/Geschäft/IT/Postgres.md index 7c8c7c9..428b3e4 100644 --- a/Geschäft/IT/Postgres.md +++ b/Geschäft/IT/Postgres.md @@ -1,9 +1,31 @@ # Backup/Dump -Im Verzeichnis von Postgres ausführen: - +Im Verzeichnis von Postgres ausführen: ```` ``` -C:\Program Files\PostgreSQL\16\bin>pg_dump.exe -U USER -d DATABASE -f c:\test.dump +C:\Program Files\PostgreSQL\16\bin> ``` +Folgenden Befehl ausführen +``` +pg_dump.exe -U USER -d DATABASE_NAME -f c:\test.dump +``` + +--- + +# Restore + +Im Verzeichnis von Postgres ausführen: ```` +``` +C:\Program Files\PostgreSQL\16\bin> +``` + +``` +psql.exe -U USER -f C:\test.dump DATABASE_NAME +``` + +--- + +# SQLite to Postgres + +