backups: implement list/create and dry-run restore

This commit is contained in:
lassulus
2023-12-07 18:23:22 +01:00
parent 0ab11948e7
commit 3d1533892b
4 changed files with 64 additions and 18 deletions

View File

@@ -11,13 +11,19 @@
Folder where state resides in
'';
};
restoreScript = lib.mkOption {
preRestoreScript = lib.mkOption {
type = lib.types.str;
default = ":";
description = ''
script to run before restoring the state dir from a backup
'';
};
postRestoreScript = lib.mkOption {
type = lib.types.str;
default = ":";
description = ''
script to restore the service after the state dir was restored from a backup
'';
};
};
}));