From adeb8eff882b6d26a18d8354a8adee9cac76ad9d Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 13 Feb 2021 09:04:59 +0100 Subject: [PATCH] bundles/postgresql: only do database dumps if we're actually doing backups --- bundles/postgresql/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/postgresql/items.py b/bundles/postgresql/items.py index c0e225e..59a73e1 100644 --- a/bundles/postgresql/items.py +++ b/bundles/postgresql/items.py @@ -58,7 +58,7 @@ files = { # FIXME currently we do not have a mechanism to use snapshot-backups of # zfs datasets. -if True: # not node.has_bundle('zfs') and node.has_bundle('backup-client'): +if node.has_bundle('backup-client'): # and not node.has_bundle('zfs'): files['/etc/backup-pre-hooks.d/90-postgresql-dump-all'] = { 'source': 'backup-pre-hook', 'content_type': 'mako',