32 lines
386 B
Markdown
32 lines
386 B
Markdown
# Backup/Dump
|
|
|
|
Im Verzeichnis von Postgres ausführen: ````
|
|
```
|
|
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
|
|
|
|
|
|
|