From c6c9dc37f70638e97df4ea9f3ee5ce34c908b615 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Mon, 18 Oct 2021 23:36:16 +0200 Subject: [PATCH] backup redis --- bundles/redis/metadata.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/bundles/redis/metadata.py b/bundles/redis/metadata.py index ad287c2..52f5d2e 100644 --- a/bundles/redis/metadata.py +++ b/bundles/redis/metadata.py @@ -4,4 +4,21 @@ defaults = { 'redis-server': {}, }, }, -} + 'backup': { + 'paths': { + '/var/lib/redis', + }, + } +} + +if node.has_bundle('zfs'): + defaults['zfs'] = { + 'datasets': { + 'tank/redis': { + 'mountpoint': '/var/lib/redis', + 'needed_by': [ + 'pkg_apt:redis-server', + ], + }, + }, + }