added support for btrfs snapshots
All checks were successful
Build and Push Docker Image / build (push) Successful in 21s

This commit is contained in:
2025-10-19 21:06:27 -07:00
parent eecabae333
commit 544a29eaf5
2 changed files with 6 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ while true; do
done done
fi fi
btrfs subvolume snapshot -r /mnt/backups/prodesk /mnt/backups/prodesk-$(date +%F) btrfs subvolume snapshot -r /source/appdata /backups/snapshots/$(hostname)-$(date +%F)
echo "[INFO] Backup cycle complete." echo "[INFO] Backup cycle complete."
echo "[INFO] Sleeping for ${INTERVAL_HOURS}h..." echo "[INFO] Sleeping for ${INTERVAL_HOURS}h..."

View File

@@ -1,12 +1,15 @@
services: services:
backupbot: backupbot:
image: gitea.calahilstudios.com/calahil/backupbot image: gitea.calahilstudios.com/calahil/backupbot:latest
container_name: backupbot container_name: backupbot
privileged: true
environment: environment:
- TZ=Etc/UTC - TZ=Etc/UTC
volumes: volumes:
# Backup folder to store dumps (accessible by Duplicati) # Backup folder to store dumps (accessible by Duplicati)
- /srv/backups/postgres:/backups - /srv/backups:/backups
# Local docker config dirs
- /srv/appdata:/source/appdata:rshared
# Docker socket to list containers # Docker socket to list containers
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped restart: unless-stopped