vault backup: 2026-07-20 13:15:11
This commit is contained in:
+11
-8
@@ -1,22 +1,22 @@
|
|||||||
# Backup/Dump
|
# Backup/Dump
|
||||||
|
|
||||||
Im Verzeichnis von Postgres ausführen: ````
|
Im Verzeichnis von Postgres ausführen: ````
|
||||||
```
|
``` bash
|
||||||
cd "C:\Program Files\PostgreSQL\16\bin"
|
cd "C:\Program Files\PostgreSQL\16\bin"
|
||||||
```
|
```
|
||||||
|
|
||||||
Folgenden Befehl ausführen
|
Folgenden Befehl ausführen
|
||||||
```
|
``` bash
|
||||||
pg_dump.exe -U USER -d DATABASE_NAME -f c:\test.dump
|
pg_dump.exe -U USER -d DATABASE_NAME -f c:\test.dump
|
||||||
```
|
```
|
||||||
|
|
||||||
Spicy Storage Backup:
|
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'
|
.\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
|
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'
|
.\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
|
# Restore
|
||||||
|
|
||||||
Im Verzeichnis von Postgres ausführen: ````
|
Im Verzeichnis von Postgres ausführen: ````
|
||||||
```
|
``` bash
|
||||||
cd "C:\Program Files\PostgreSQL\16\bin"
|
cd "C:\Program Files\PostgreSQL\16\bin"
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
``` bash
|
||||||
psql.exe -U USER -f C:\test.dump DATABASE_NAME
|
psql.exe -U USER -f C:\test.dump DATABASE_NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
Create empty database then run command.
|
Create empty database then run command.
|
||||||
|
|
||||||
Spicy Storage Backup einspielen:
|
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
|
.\psql.exe -U matthias -f 'K:\Nextcloud\Lodner\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION - spicy_storage.dump' spicy_storage
|
||||||
```
|
```
|
||||||
|
|
||||||
Surface
|
Surface
|
||||||
```
|
``` bash
|
||||||
.\psql.exe -U matthias -f 'C:\Users\matth\Nextcloud\Geschäftlich\Lodner Geschmackswelten\Datenbank Sicherungen\Postgres\VERSION' spicy_storage
|
.\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'
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user