backup docs
This commit is contained in:
parent
91311b49ef
commit
285f1d6db2
1 changed files with 25 additions and 0 deletions
25
docs/backup.md
Normal file
25
docs/backup.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
layout: default
|
||||
title: Backup
|
||||
permalink: /backup
|
||||
nav_order: 5
|
||||
---
|
||||
|
||||
## Backup
|
||||
|
||||
The following commands should be valid for every setup (docker/debian/sqlite/postgres) but check your installation directory first.
|
||||
This includes database, configuration, custom user locales, media, images and thumbnails.
|
||||
|
||||
```bash
|
||||
cd /opt/gancio/ # or /home/gancio
|
||||
tar --ignore-failed-read -czf gancio-$(date +%Y-%m-%d-%H%M%S)-backup.tgz \
|
||||
config.json \
|
||||
uploads \
|
||||
user_locale \
|
||||
db.sqlite \
|
||||
postgres \
|
||||
data
|
||||
```
|
||||
|
||||
> info "Automatic backup"
|
||||
> To periodically backup your data you should probably use something like [restic](https://restic.net) or [borg](https://www.borgbackup.org/)
|
Loading…
Reference in a new issue