adding config file for docker volume backup

pull/16/head
Cian Hatton 3 years ago
parent 9208ba6c95
commit 23cc3964b9

@ -18,6 +18,11 @@ services:
docker_networks:
- mariadb_net
backups:
schedule_keys:
monthly: "monthly"
nightly: "nightly"
qnap:
# path on qnap where downloads go
downloads_dir: /mnt/ssd0/downloads

@ -11,7 +11,7 @@ services:
- --cron
- "0 3 * * *"
- --host-path
- /mnt/hdds/backups/
- /mnt/mergerfs/backups/
- --retention-days
- "7"
- --modes

@ -0,0 +1,34 @@
---
periodic_backups:
- name: "Nightly Volume Backups"
schedule: "0 3 * * *"
backups:
- name: "Nightly backup to local filesystem"
type: "filesystem"
host_path: {{ qnap.backups_dir }}
schedule_key: {{ backups.schedule_keys.nightly }}
- name: "Backup to iDrive E2"
type: "s3"
schedule_key: {{ backups.schedule_keys.nightly }}
s3_credentials:
aws_access_key_id: {{ docker_volume_backup.aws_access_key_id }}
aws_secret_access_key: {{ docker_volume_backup.aws_secret_access_key }}
aws_default_region: {{ docker_volume_backup.aws_default_region }}
aws_bucket: {{ docker_volume_backup.aws_bucket }}
aws_endpoint: {{ docker_volume_backup.aws_endpoint }}
- name: "Monthly Volume Backups"
schedule: "0 3 * * *"
backups:
- name: "Monthly backup to local filesystem"
type: "filesystem"
host_path: {{ qnap.backups_dir }}
schedule_key: {{ backups.schedule_keys.monthly }}
- name: "Backup to iDrive E2"
type: "s3"
schedule_key: {{ backups.schedule_keys.monthly }}
s3_credentials:
aws_access_key_id: {{ docker_volume_backup.aws_access_key_id }}
aws_secret_access_key: {{ docker_volume_backup.aws_secret_access_key }}
aws_default_region: {{ docker_volume_backup.aws_default_region }}
aws_bucket: {{ docker_volume_backup.aws_bucket }}
aws_endpoint: {{ docker_volume_backup.aws_endpoint }}
Loading…
Cancel
Save