1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/websitev2/docs/deploy/database-backup.md

20 lines
392 B
Markdown
Raw Normal View History

---
id: database_backup
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
```