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 + +