Reduce memory footprint during backup

This commit is contained in:
nemunaire 2024-11-08 08:12:34 +01:00
parent 4f263b2e61
commit 93404eab2d

View File

@ -188,8 +188,13 @@ write_files:
mkdir -p /var/backups/happydomain
# Reduce memory footprint during backup
docker stop pdns-demo-happydomain
docker exec -i app-happydomain hadmin /api/backup.json -X POST > /var/backups/happydomain/db.json
docker start pdns-demo-happydomain
restic backup /var/backups/happydomain
path: /etc/cron.daily/backup_happydomain
permissions: 0o755