Enable backups for other services

This commit is contained in:
Ivan R. 2024-11-26 00:05:48 +05:00
parent b7cadf2b91
commit 1944a88df3
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
2 changed files with 22 additions and 13 deletions

View file

@ -30,34 +30,21 @@
- /root/.pgpass:/root/.pgpass:ro - /root/.pgpass:/root/.pgpass:ro
- /mnt/hdd/archivebox-data:/data/archivebox:ro - /mnt/hdd/archivebox-data:/data/archivebox:ro
- archivebox:/data/docker/archivebox:ro - archivebox:/data/docker/archivebox:ro
- authentik-redis:/data/docker/authentik-redis:ro
- authentik-media:/data/docker/authentik-media:ro - authentik-media:/data/docker/authentik-media:ro
- authentik-templates:/data/docker/authentik-templates:ro
- authentik-certs:/data/docker/authentik-certs:ro - authentik-certs:/data/docker/authentik-certs:ro
- comfycamp:/data/docker/comfycamp:ro - comfycamp:/data/docker/comfycamp:ro
- forgejo:/data/docker/forgejo:ro - forgejo:/data/docker/forgejo:ro
- freshrss:/data/docker/freshrss:ro - freshrss:/data/docker/freshrss:ro
- freshrss-extensions:/data/docker/freshrss-extensions:ro
- immich-redis:/data/docker/immich-redis:ro
- immich-model-cache:/data/docker/immich-model-cache:ro
- /mnt/hdd/immich:/data/immich:ro - /mnt/hdd/immich:/data/immich:ro
- jellyfin-cache:/data/docker/jellyfin-cache:ro
- jellyfin-config:/data/docker/jellyfin-config:ro - jellyfin-config:/data/docker/jellyfin-config:ro
- /mnt/hdd/jellyfin:/data/jellyfin:ro
- maddy:/data/docker/maddy:ro - maddy:/data/docker/maddy:ro
- redis-mastodon:/data/docker/redis-mastodon:ro
- mastodon-public-system:/data/docker/mastodon-public-system:ro
- minecraft:/data/docker/minecraft:ro - minecraft:/data/docker/minecraft:ro
- /mnt/hdd/minio:/data/minio:ro - /mnt/hdd/minio:/data/minio:ro
- grafana:/data/docker/grafana:ro - grafana:/data/docker/grafana:ro
- prometheus:/data/docker/prometheus:ro - prometheus:/data/docker/prometheus:ro
- uptime-kuma:/data/docker/uptime-kuma:ro - uptime-kuma:/data/docker/uptime-kuma:ro
- nextcloud:/data/docker/nextcloud:ro - nextcloud:/data/docker/nextcloud:ro
- nextcloud-redis:/data/docker/nextcloud-redis:ro
- /mnt/hdd/nextcloud:/data/nextcloud:ro - /mnt/hdd/nextcloud:/data/nextcloud:ro
- ollama:/data/docker/ollama:ro
- open-webui:/data/docker/open-webui:ro
- peertube-redis:/data/docker/peertube-redis:ro
- /mnt/hdd/peertube:/data/peertube:ro - /mnt/hdd/peertube:/data/peertube:ro
- phoenix:/data/docker/phoenix:ro - phoenix:/data/docker/phoenix:ro
- prosody:/data/docker/prosody:ro - prosody:/data/docker/prosody:ro

View file

@ -5,10 +5,32 @@ set -e
docker exec restic-1 restic -o s3.bucket-lookup=dns \ docker exec restic-1 restic -o s3.bucket-lookup=dns \
backup --stdin-filename /data/postgresql.sql --stdin-from-command \ backup --stdin-filename /data/postgresql.sql --stdin-from-command \
-- pg_dumpall -U postgres -h postgresql --no-password -- pg_dumpall -U postgres -h postgresql --no-password
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/archivebox
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/archivebox
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/authentik-media
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/authentik-certs
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/comfycamp
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/forgejo
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/freshrss
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/immich docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/immich
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/jellyfin-config
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/maddy
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/minecraft
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/minio
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/grafana
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/prometheus
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/uptime-kuma
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/nextcloud docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/nextcloud
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/nextcloud docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/nextcloud
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/peertube docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/peertube
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/phoenix
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/prosody
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/synapse
docker exec restic-1 restic -o s3.bucket-lookup=dns backup /data/docker/vaultwarden
docker exec restic-1 restic -o s3.bucket-lookup=dns forget --keep-daily 7 --keep-weekly 2 docker exec restic-1 restic -o s3.bucket-lookup=dns forget --keep-daily 7 --keep-weekly 2