Role to create Restic backup jobs and scripts in cron scheduler. Restic must be on PATH.
- Default Variables
- restic_backup_jobs
- restic_backup_jobs_enable
- restic_backup_jobs_install_path
- restic_backup_jobs_s3_bucket_name
- restic_backup_jobs_s3_endpoint
- restic_backup_jobs_s3_repo
- restic_backup_jobs_s3_repo_access_key
- restic_backup_jobs_s3_repo_password
- restic_backup_jobs_s3_repo_secret_key
- restic_backup_jobs_username
- Discovered Tags
- Dependencies
- License
- Author
Job definition
restic_backup_jobs: []
restic_backup_jobs:
- name: "dfs"
dirs:
- "/srv/samba"
excludes:
- _tmp*
- '*.bak'
month: "*"
weekday: "*"
day: "*"
hour: "22"
minute: "13"
user: "{{ restic_backup_jobs_username }}"
state: present
disabled: true
retention:
keep_last: 1
# keep_hourly: 1
keep_daily: 7
keep_weekly: 4
# keep_monthly: 6
# keep_yearly
Enable restic backup for samba shares.
restic_backup_jobs_enable: false
Path to store scripts
restic_backup_jobs_install_path: /root
Minio S3 bucket name for restic backup storage.
restic_backup_jobs_s3_bucket_name: restic-{{ inventory_hostname }}
Minio S3 endpoint for restic backup storage.
Example:
backup__base__restic_s3_endpoint: "https://minio.{{ dns_domain }}"
restic_backup_jobs_s3_endpoint: "{{ backup__base__restic_s3_endpoint }}"
restic_backup_jobs_s3_endpoint: '{{ backup__base__restic_s3_endpoint }}'
Minio S3 repo URL for restic backup storage.
restic_backup_jobs_s3_repo: s3:{{ restic_backup_jobs_s3_endpoint }}/{{ restic_backup_jobs_s3_bucket_name
}}
Minio S3 repo access key for restic backup storage.
restic_backup_jobs_s3_repo_access_key: '{{ backup__base__restic_s3_repo_access_key
}}'
Minio S3 repo password for restic backup storage.
restic_backup_jobs_s3_repo_password: '{{ backup__base__restic_s3_repo_password }}'
Minio S3 repo secret key for restic backup storage.
restic_backup_jobs_s3_repo_secret_key: '{{ backup__base__restic_s3_repo_secret_key
}}'
username
restic_backup_jobs_username: root
backup-init-restic
Init backup if restic is enabled.
backup-list-restic
List backups if restic is enabled.
backup-restic
Run backup if restic is enabled.
never
restore-restic
Run restore if restic is enabled.
restore-restic-single
Run single item restore if restic is enabled.
None.
license (GPL-2.0-or-later, MIT, etc)
andif888