File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
nixos/modules/services/backup Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 57
57
type = with lib . types ; nullOr bool ;
58
58
default = null ;
59
59
} ;
60
+
61
+ pre_snapshot_script = lib . mkOption {
62
+ description = "Script to run before taking snapshot." ;
63
+ type = with lib . types ; nullOr str ;
64
+ default = null ;
65
+ } ;
66
+
67
+ post_snapshot_script = lib . mkOption {
68
+ description = "Script to run after taking snapshot." ;
69
+ type = with lib . types ; nullOr str ;
70
+ default = null ;
71
+ } ;
72
+
73
+ pruning_script = lib . mkOption {
74
+ description = "Script to run after pruning snapshot." ;
75
+ type = with lib . types ; nullOr str ;
76
+ default = null ;
77
+ } ;
78
+
79
+ no_inconsistent_snapshot = lib . mkOption {
80
+ description = "Whether to take a snapshot if the pre script fails" ;
81
+ type = with lib . types ; nullOr bool ;
82
+ default = null ;
83
+ } ;
84
+
85
+ force_post_snapshot_script = lib . mkOption {
86
+ description = "Whether to run the post script if the pre script fails" ;
87
+ type = with lib . types ; nullOr bool ;
88
+ default = null ;
89
+ } ;
90
+
91
+ script_timeout = lib . mkOption {
92
+ description = "Time limit for pre/post/pruning script execution time (<=0 for infinite)." ;
93
+ type = with lib . types ; nullOr int ;
94
+ default = null ;
95
+ } ;
60
96
} ;
61
97
62
98
datasetOptions = rec {
You can’t perform that action at this time.
0 commit comments