vault backup: 2026-07-20 13:15:11

This commit is contained in:
2026-07-20 13:15:11 +02:00
parent 8339204a31
commit 28c74dcb94
+11 -8
View File
@@ -1,22 +1,22 @@
# Backup/Dump
Im Verzeichnis von Postgres ausführen: ````
```
``` bash
cd "C:\Program Files\PostgreSQL\16\bin"
```
Folgenden Befehl ausführen
```
``` bash
pg_dump.exe -U USER -d DATABASE_NAME -f c:\test.dump
```
Spicy Storage Backup:
```
``` bash
.\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
```
``` bash
.\pg_dump.exe -U matthias -d spicy_storage -f 'C:\Users\matth\Nextcloud\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION - spicy_storage.dump'
```
@@ -25,25 +25,28 @@ Surface
# Restore
Im Verzeichnis von Postgres ausführen: ````
```
``` bash
cd "C:\Program Files\PostgreSQL\16\bin"
```
```
``` bash
psql.exe -U USER -f C:\test.dump DATABASE_NAME
```
Create empty database then run command.
Spicy Storage Backup einspielen:
```
``` bash
.\psql.exe -U matthias -f 'K:\Nextcloud\Lodner\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION - spicy_storage.dump' spicy_storage
```
Surface
```
``` bash
.\psql.exe -U matthias -f 'C:\Users\matth\Nextcloud\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION' spicy_storage
```
---
``` bash
pg_restore -h localhost -p 5432 -U matthias -d label_editor -v 'C:\Users\matth\Downloads\Lodner_-_Label_Editor_backup_2026-07-20_11-45-19.dump'
```