2019-06-05 17:53:19 +00:00
|
|
|
# Description
|
|
|
|
|
2019-06-05 18:51:22 +00:00
|
|
|
This role is intended for uploading backups to DigitalOcean Spaces using the [`s3cmd`](https://s3tools.org/s3cmd) script.
|
2019-06-05 17:53:19 +00:00
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
This role should be included by anothe role and ran with certain variables:
|
|
|
|
```yaml
|
|
|
|
- name: Configure Ghost backups
|
|
|
|
include_role:
|
|
|
|
name: s3cmd-backup
|
|
|
|
vars:
|
|
|
|
backup_name: my-app-backups
|
|
|
|
backup_number: 1
|
|
|
|
backup_hour: 4
|
|
|
|
backup_day: '*/4'
|
|
|
|
backup_directory: '/var/tmp/backups'
|
|
|
|
backup_base_domain: 'ams3.digitaloceanspaces.com'
|
|
|
|
backup_bucket_name: 'my-app-backups'
|
|
|
|
backup_access_key: 'ACCESS_KEY'
|
|
|
|
backup_secret_key: 'SECRET_KEY'
|
|
|
|
```
|
2019-06-05 18:52:15 +00:00
|
|
|
|
|
|
|
If you want to use S3 you can set:
|
|
|
|
```yaml
|
|
|
|
backup_base_domain: s3.amazonaws.com
|
|
|
|
```
|