Ansible Role objectstore_backup
This role configures a backup service/timer for an objectstore to objectstore backup using the ‚MinIO‘ client mc
.
Mandatory Requirements
Install the
MinIO
binary. This can be done using the linuxfabrik.lfops.minio_client role.
If you use the Objectstore Backup Playbook, this is automatically done for you.
Mandatory Role Variables
Variable |
Description |
---|---|
|
S3 and Elastic Compute Cloud (EC2) Access Key for the destination objectstore. |
|
S3 and Elastic Compute Cloud (EC2) Access Secret for the destination objectstore. |
|
S3 and Elastic Compute Cloud (EC2) Access Key for the source objectstore. |
|
S3 and Elastic Compute Cloud (EC2) Access Secret for the source objectstore. |
Example:
# mandatory
objectstore_backup__destination_access_key: 'linuxfabrik'
objectstore_backup__destination_secret_key: 'linuxfabrik'
objectstore_backup__source_access_key: 'linuxfabrik'
objectstore_backup__source_secret_key: 'linuxfabrik'
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
The name of the bucket to be backed-up to at the destination objectstore. Will be created if it does not exist. |
|
|
A unique name (alias) for the destination objectstore. |
|
|
The URL that identifies a host and port as the entry point for the destination S3 objectstore web service. |
|
|
The |
|
|
The name of the bucket to be backed-up from the source objectstore |
|
|
A unique name (alias) for the source objectstore. |
|
|
The URL that identifies a host and port as the entry point for the source S3 objectstore web service. |
|
Example:
# optional
objectstore_backup__destination_bucket: '{{ ansible_nodename }}'
objectstore_backup__destination_name: 'swissbackup'
objectstore_backup__destination_url: 'https://s3.swiss-backup03.infomaniak.com'
objectstore_backup__on_calendar: 'Sun *-*-* 19:00:00'
objectstore_backup__source_bucket: '{{ ansible_nodename }}'
objectstore_backup__source_name: 'swisscloud'
objectstore_backup__source_url: 'https://s3.pub1.infomaniak.cloud'