You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.5 KiB
Django/Jinja

---
periodic_backups:
- name: "Nightly Volume Backups"
schedule: "0 3 * * *"
schedule_key: {{ backups.schedule_keys.nightly }}
backups:
- name: "Nightly backup to local filesystem"
type: "filesystem"
filesystem_options:
host_path: {{ qnap.backups_dir }}
- name: "Backup to iDrive E2"
type: "s3"
s3_options:
host_path: {{ qnap.backups_dir }}
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 0 1 * *"
schedule_key: {{ backups.schedule_keys.monthly }}
backups:
- name: "Monthly backup to local filesystem"
type: "filesystem"
filesystem_options:
host_path: {{ qnap.backups_dir }}
- name: "Backup to iDrive E2"
type: "s3"
s3_options:
host_path: {{ qnap.backups_dir }}
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 }}