1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/website/docs/using-unleash/deploy/database-backup.md

19 lines
372 B
Markdown
Raw Normal View History

---
title: Database Backup
---
2019-03-05 09:26:34 +01:00
When upgrading to a new major version of Unleash, we advise to do a full database backup to ease rollback in case of failures.
2016-12-20 11:11:36 +01:00
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
```