Ansible role for creating backups with s3cmd
Go to file
Jakub Sokołowski 348d551dcc
add installation instruction
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-06-08 08:09:30 -04:00
defaults add alternative s3 base domain 2019-06-05 14:51:49 -04:00
tasks add role files 2019-06-05 13:53:19 -04:00
templates add role files 2019-06-05 13:53:19 -04:00
LICENSE add MIT license 2019-06-05 13:49:31 -04:00
README.md add installation instruction 2019-06-08 08:09:30 -04:00

README.md

Description

This role is intended for uploading backups to DigitalOcean Spaces using the s3cmd script.

Installation

In your requirements.yml file:

- name: infra-role-s3cmd-backup
  src: git@github.com:status-im/infra-role-s3cmd-backup.git
  scm: git

Usage

This role should be included by anothe role and ran with certain variables:

- 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'

If you want to use S3 you can set:

backup_base_domain: s3.amazonaws.com