Autorestic quick start
Install autorestic:
sudo wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash
Config file:
/home/mac/.autorestic.yml
version: 2
locations:
ansible_semaphore-mysql:
from: ansible_semaphore-mysql # The exact name of your Docker volume
type: volume # This tells Autorestic to handle it as a Docker volume
to:
- b2
forget: prune
options:
forget:
keep-daily: 7
keep-weekly: 4
keep-monthly: 12
volume_folder:
from:
- /home/mac/docker_volumes
to:
- b2
forget: prune
options:
forget:
keep-daily: 7
keep-weekly: 4
keep-monthly: 12
backends:
name-of-backend:
type: b2
path: 'bucket_name'
# Or With a path
# path: 'bucket_name:/some/path'
env:
B2_ACCOUNT_ID: 'backblaze_keyID'
B2_ACCOUNT_KEY: 'backblaze_applicationKey'