vault backup: 2024-07-02 17:29:55

This commit is contained in:
2024-07-02 17:29:55 +02:00
parent 5592752358
commit 190b96d3f4
+25 -3
View File
@@ -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