add postgresql backup hooks

This commit is contained in:
Jörg Thalheim
2024-05-31 16:36:37 +02:00
parent c1d86cd8ac
commit 4822fbc80e
11 changed files with 145 additions and 19 deletions

View File

@@ -17,6 +17,15 @@
Folder where state resides in
'';
};
preBackupCommand = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
description = ''
script to run before backing up the state dir
This is for example useful for services that require an export of their state
e.g. a database dump
'';
};
preRestoreCommand = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;