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