vault backup: 2024-09-22 01:16:56

This commit is contained in:
2024-09-22 01:16:56 +02:00
parent 42d08b7be6
commit a1534b446b
32 changed files with 77 additions and 12 deletions
+49
View File
@@ -0,0 +1,49 @@
# Backup/Dump
Im Verzeichnis von Postgres ausführen: ````
```
cd "C:\Program Files\PostgreSQL\16\bin"
```
Folgenden Befehl ausführen
```
pg_dump.exe -U USER -d DATABASE_NAME -f c:\test.dump
```
Spicy Storage Backup:
```
.\pg_dump.exe -U matthias -d spicy_storage -f 'K:\Nextcloud\Lodner\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\003 - 2024-07-12_0109 - spicy_storage.dump'
```
Surface
```
.\pg_dump.exe -U matthias -d spicy_storage -f 'C:\Users\matth\Nextcloud\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION - spicy_storage.dump'
```
---
# Restore
Im Verzeichnis von Postgres ausführen: ````
```
cd "C:\Program Files\PostgreSQL\16\bin"
```
```
psql.exe -U USER -f C:\test.dump DATABASE_NAME
```
Create empty database then run command.
Spicy Storage Backup einspielen:
```
.\psql.exe -U matthias -f 'K:\Nextcloud\Lodner\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION - spicy_storage.dump' spicy_storage
```
Surface
```
.\psql.exe -U matthias -f 'C:\Users\matth\Nextcloud\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION' spicy_storage
```
---