Role to set up Stouts.backup jobs for Roots/Trellis sites
From your project directory
- Clone this repository
git clone --depth=1 git@github.com:MWDelaney/trellis-backup.git trellis/roles/backup && rm -rf trellis/roles/backup/.git
- 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
- Add
trellis-backup
andStouts.backup
to server.yml:
- name: Set up backups
hosts: web:&{{ env }}
roles:
- { role: backup, tags: [backup] }
- { role: Stouts.backup, tags: [backup] }
- Reprovision your server to add backup tasks:
ansible-playbook server.yml -e env=production