
s3cmd role¶
Install and configure s3cmd.
Usage¶
Configure the role.
s3cmd_host_base: sos-ch-dk-2.exo.io
s3cmd_host_bucket: kronos.sos-ch-dk-2.exo.io
s3cmd_access_key: EXO2677bc43796a0cff80b29b79
s3cmd_secret_key: # default: "{{ vault_s3cmd_secret_key }}"
s3cmd_backup_set:
- id: "disk2"
src: /mnt/sdb/
exclude:
- docker/
target: kronos
hour: "5"
- id: "disk"
src: /mnt/sda/
target: kronos
hour: "3"
disabled: true # default: false
state: absent # default: present
And include it in your playbook.
Docs¶
Use with s3cmd cli¶
Become root and list buckets.
List the files in a bucket.