mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-27 00:19:39 +01:00
Create database.backup
This commit is contained in:
parent
744e41f9aa
commit
aede451d3b
16
docs/database.backup
Normal file
16
docs/database.backup
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Datbase backups
|
||||||
|
When upgrading to new major version of Unleash it is advised to do a
|
||||||
|
full database backup to ease rollback in case of failures.
|
||||||
|
|
||||||
|
1. Create a database backup:
|
||||||
|
|
||||||
|
```
|
||||||
|
pg_dump --clean -U unleash_user -W -h localhost unleash > unleash-db.dump
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Restore from a backup:
|
||||||
|
|
||||||
|
```
|
||||||
|
psql -U unleash_user -W -h localhost unleash < unleash-db.dump
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user