From 7cd56b4111c2b6251ab31fc41f8309d21daf809e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 15 Nov 2025 11:49:56 +0100 Subject: [PATCH] feat: add Gitea volumes to Restic backup configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add gitea-backup plan with dev_gitea_data, dev_gitea_config, and dev_gitea_runner_data volumes - Schedule: Daily at 11 AM - Retention: 7 daily, 4 weekly, 6 monthly, 2 yearly backups - Add missing asciinema_data volume to backup configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- restic/compose.yaml | 16 ++++++++++++++++ restic/config.json | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/restic/compose.yaml b/restic/compose.yaml index 7c93362..517c892 100644 --- a/restic/compose.yaml +++ b/restic/compose.yaml @@ -39,6 +39,10 @@ services: - backup_ai_postgres_data:/volumes/ai_postgres_data:ro - backup_ai_webui_data:/volumes/ai_webui_data:ro - backup_ai_crawl4ai_data:/volumes/ai_crawl4ai_data:ro + - backup_asciinema_data:/volumes/asciinema_data:ro + - backup_dev_gitea_data:/volumes/dev_gitea_data:ro + - backup_dev_gitea_config:/volumes/dev_gitea_config:ro + - backup_dev_gitea_runner_data:/volumes/dev_gitea_runner_data:ro environment: TZ: ${TIMEZONE:-Europe/Berlin} @@ -150,6 +154,18 @@ volumes: backup_ai_crawl4ai_data: name: ai_crawl4ai_data external: true + backup_asciinema_data: + name: asciinema_data + external: true + backup_dev_gitea_data: + name: dev_gitea_data + external: true + backup_dev_gitea_config: + name: dev_gitea_config + external: true + backup_dev_gitea_runner_data: + name: dev_gitea_runner_data + external: true networks: compose_network: diff --git a/restic/config.json b/restic/config.json index a4891bc..01404e0 100644 --- a/restic/config.json +++ b/restic/config.json @@ -326,6 +326,26 @@ "yearly": 2 } } + }, + { + "id": "gitea-backup", + "repo": "hidrive-backup", + "paths": [ + "/volumes/dev_gitea_data", + "/volumes/dev_gitea_config", + "/volumes/dev_gitea_runner_data" + ], + "schedule": { + "cron": "0 11 * * *" + }, + "retention": { + "policyTimeBucketed": { + "daily": 7, + "weekly": 4, + "monthly": 6, + "yearly": 2 + } + } } ] }