From c2cd2e6e34209780177c307e4572be334304dcc4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 30 Aug 2021 21:50:55 +0100 Subject: [PATCH] Add backups for `grimes` --- ansible/host_vars/grimes.yml | 19 +++++++++++++++++++ ansible/main.yml | 1 + 2 files changed, 20 insertions(+) diff --git a/ansible/host_vars/grimes.yml b/ansible/host_vars/grimes.yml index b9b3655..fbf8999 100644 --- a/ansible/host_vars/grimes.yml +++ b/ansible/host_vars/grimes.yml @@ -14,3 +14,22 @@ dokku_plugins: - name: redirect url: https://github.com/dokku/dokku-redirect.git + +# https://dokku.com/docs/advanced-usage/backup-recovery/ +restic_backup_locations: + - /home/dokku + - /var/lib/dokku/config + - /var/lib/dokku/data + - /var/lib/dokku/services + +restic_backup_excludes: + - /home/dokku/**/cache # Caches are big, don't need those + +restic_healthchecks_id: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 66316632623066346265613438663263636530643862353664613939323835353736613635343662 + 3433313362346338623439343962333161343134623930610a386133653939366630646537656335 + 66666633323063353464326564653362356666376331656635663863353966363434333863396463 + 3264326637306366380a383739653061343561303939363932396232323065323164653563663161 + 66646363326639333530376134343465666138656134343765663130333739313631666266636363 + 3539613535636461316461386238373730643238313435303439 diff --git a/ansible/main.yml b/ansible/main.yml index 65d01df..adfdc7b 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -112,3 +112,4 @@ - nebula - role: dokku_bot.ansible_dokku become: true + - restic