1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/docs/deploy/database-backup.md
egilconr 1d9065aff1
chore: Improve our user documentation (#733)
Co-authored-by: Christopher Kolstad <chriswk@fastmail.com>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
Co-authored-by: Eco C <egilconr@gmail.com>
2021-02-25 16:01:36 +01:00

20 lines
392 B
Markdown

---
id: database_backup
title: Database Backup
---
When upgrading to a new major version of Unleash, we advise 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
```