diff options
| -rw-r--r-- | modules/pgbackrest.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pgbackrest.nix b/modules/pgbackrest.nix index 41a7b381..ca319ccd 100644 --- a/modules/pgbackrest.nix +++ b/modules/pgbackrest.nix | |||
| @@ -179,6 +179,8 @@ in { | |||
| 179 | ExecStart = "${cfg.package}/bin/pgbackrest --type ${escapeSystemdExecArg backupCfg.type} --stanza ${escapeSystemdExecArg backupCfg.stanza}${optionalString (!(isNull backupCfg.repo)) " --repo ${backupCfg.repo}"} backup"; | 179 | ExecStart = "${cfg.package}/bin/pgbackrest --type ${escapeSystemdExecArg backupCfg.type} --stanza ${escapeSystemdExecArg backupCfg.stanza}${optionalString (!(isNull backupCfg.repo)) " --repo ${backupCfg.repo}"} backup"; |
| 180 | User = backupCfg.user; | 180 | User = backupCfg.user; |
| 181 | Group = backupCfg.group; | 181 | Group = backupCfg.group; |
| 182 | Restart = "on-failure"; | ||
| 183 | RestartSec = "5min"; | ||
| 182 | }; | 184 | }; |
| 183 | }) cfg.backups; | 185 | }) cfg.backups; |
| 184 | 186 | ||
