/trellis-backup

Ansible role to set up Stouts.backup jobs for Roots/Trellis sites

MIT LicenseMIT

trellis-backup

Role to set up Stouts.backup jobs for Roots/Trellis sites

Usage

From your project directory

  1. Clone this repository
git clone --depth=1 git@github.com:MWDelaney/trellis-backup.git trellis/roles/backup && rm -rf trellis/roles/backup/.git
  1. Clone Stouts.backup
git clone --depth=1 git@github.com:Stouts/Stouts.backup.git trellis/roles/Stouts.backup && rm -rf trellis/roles/Stouts.backup/.git
  1. Add trellis-backup and Stouts.backup to server.yml:
- name: Set up backups
 hosts: web:&{{ env }}
 roles:
   - { role: backup, tags: [backup] }
   - { role: Stouts.backup, tags: [backup] }
  1. Reprovision your server to add backup tasks:
ansible-playbook server.yml -e env=production