mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-22 04:11:09 +00:00
Update backup_and_restore.md (#242)
This commit is contained in:
parent
892abc1ef5
commit
825985e59c
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
When using docker or ansible, there should be a `volumes` folder, which contains both the database, and all the pictures. Copy this folder to the new instance to restore your data.
|
When using docker or ansible, there should be a `volumes` folder, which contains both the database, and all the pictures. Copy this folder to the new instance to restore your data.
|
||||||
|
|
||||||
### Incremental Database backup
|
### Full Database backup
|
||||||
|
|
||||||
To incrementally backup the DB to an `.sql.gz` file, you can run:
|
To take a complete backup of the DB to a `.sql.gz` file, you can run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose exec postgres pg_dumpall -c -U lemmy | gzip > lemmy_dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql.gz
|
docker-compose exec postgres pg_dumpall -c -U lemmy | gzip > lemmy_dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql.gz
|
||||||
|
|
Loading…
Reference in a new issue