aboutsummaryrefslogtreecommitdiff
path: root/modules/duply_backup
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-06-18 06:47:08 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-06-18 06:47:08 +0200
commit171d8e1a8861e5844f6cb8d1623b93b0e86aabea (patch)
tree67c4d21e885e9a7b863329c6ed29742c7b490f4d /modules/duply_backup
parenta97118c489a59d723538292214efaa10dfcb96df (diff)
downloadNix-171d8e1a8861e5844f6cb8d1623b93b0e86aabea.tar.gz
Nix-171d8e1a8861e5844f6cb8d1623b93b0e86aabea.tar.zst
Nix-171d8e1a8861e5844f6cb8d1623b93b0e86aabea.zip
Add monitoring for duply backup
Diffstat (limited to 'modules/duply_backup')
-rw-r--r--modules/duply_backup/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/duply_backup/default.nix b/modules/duply_backup/default.nix
index 1e115be..bce4d65 100644
--- a/modules/duply_backup/default.nix
+++ b/modules/duply_backup/default.nix
@@ -82,6 +82,7 @@ in
82 '' 82 ''
83 touch ${varDir}/${k}.log 83 touch ${varDir}/${k}.log
84 ${pkgs.duply}/bin/duply ${config.secrets.location}/backup/${k}/ ${action} --force >> ${varDir}/${k}.log 84 ${pkgs.duply}/bin/duply ${config.secrets.location}/backup/${k}/ ${action} --force >> ${varDir}/${k}.log
85 [[ $? = 0 ]] || echo -e "Error when doing backup for ${k}, see above\n---------------------------------------" >&2
85 '' 86 ''
86 ) config.services.duplyBackup.profiles)} 87 ) config.services.duplyBackup.profiles)}
87 ''; 88 '';