summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-10-08 17:18:40 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2023-10-08 17:18:40 +0200
commita39f712da82940143ac86e8fd9bbfe746890ee00 (patch)
treef4a5d22c9c6857d946630a18c2ba29b31439c48f /modules
parent0b0f5969413fad1e280869ca8a3e48fc5c6167a0 (diff)
downloadnixos-a39f712da82940143ac86e8fd9bbfe746890ee00.tar
nixos-a39f712da82940143ac86e8fd9bbfe746890ee00.tar.gz
nixos-a39f712da82940143ac86e8fd9bbfe746890ee00.tar.bz2
nixos-a39f712da82940143ac86e8fd9bbfe746890ee00.tar.xz
nixos-a39f712da82940143ac86e8fd9bbfe746890ee00.zip
vidhar: retry pgbackrest backup jobs
Diffstat (limited to 'modules')
-rw-r--r--modules/pgbackrest.nix2
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