Commit 64543b

2025-10-07 15:53:14 theophile: miniflux backup and restore
procédure de sauvegarde.md ..
@@ 12,18 12,23 @@
- jellyfin
- navidrome
+ :::warning
+ # Stop containers before making backups.
+ This is safer for data.
+ :::
+
---
### Otterwiki ✅
OtterWiki being a flatfile wiki, we can back it up by simply copying the
- `/mnt/data/otterwiki` folder.
+ `/mnt/data/otterwiki` folder and restoring it.
---
### Forgejo ✅
- #### Backup
+ **Backup**
[Based on the documentation](https://forgejo.org/docs/latest/admin/upgrade/#backup) and [this analysis of gitea backups](https://codeberg.org/forgejo/forgejo/src/tag/v1.21.3-0/docs/content/administration/backup-and-restore.en-us.md), we can run
@@ 42,7 47,7 @@
docker compose exec forgejo rm /tmp/forgejo-dump.zip
```
- #### Restore
+ **Restore**
Move all relevant files to their location in the mounted volumes:
@@ 102,17 107,39 @@
### Miniflux
+ **Backups**
+
[FAQ → miniflux.app](https://miniflux.app/faq.html#backup)
[postgresql dump restore → postgresql.org](https://www.postgresql.org/docs/current/backup-dump.html)
- Miniflux stores all it's data in the postgresql db. We can dump it:
+ Miniflux stores all it's data in a PostgreSQL db.
+
+ We can dump it with:
+
+ ```bash
+ docker compose exec -T db pg_dump -U miniflux miniflux > miniflux_backup.sql
+ ```
+
+ **Restore**
+
+ Start the db service:
```bash
- sudo bash -c "docker compose exec db pg_dump -U miniflux miniflux" > miniflux_backup.sql
+ docker compose up -d db
```
- And use the file to restore it later.
+ Then run the dump restoration command:
+
+ ```bash
+ cat ./miniflux_backup.sql | podman-compose exec -T db psql -U miniflux miniflux
+ ```
+
+ Then start the miniflux service:
+
+ ```bash
+ docker compose up -d miniflux
+ ```
---
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9