gitea: try to automate backup with backrest pre/post hooks and pgdump
This commit is contained in:
5
hosts/home-morefine/docker/gitea/backrest_hook_begin.sh
Normal file
5
hosts/home-morefine/docker/gitea/backrest_hook_begin.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
# run pg_dump
|
||||
bash /home/backups/docker/gitea/dump_db.sh
|
||||
|
||||
# stop gitea
|
||||
docker compose -f /home/backups/docker/gitea/docker-compose.yaml stop
|
||||
Reference in New Issue
Block a user