1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/docs/database-backup.md

21 lines
397 B
Markdown
Raw Normal View History

---
id: database_backup
title: Database Backup
---
When upgrading to a new major version of Unleash it is advised to do a
2016-12-20 11:11:36 +01:00
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
```