Compare commits

..

2 Commits

Author SHA1 Message Date
nyanloutre a21636baa2 reduce frequency of high IO operations 2022-06-30 18:58:34 +02:00
nyanloutre 418a7ba107 configure hetzner backup 2022-06-30 18:58:16 +02:00
3 changed files with 5 additions and 7 deletions

View File

@ -32,7 +32,10 @@
services.zfs = {
autoSnapshot.enable = true;
autoScrub.enable = true;
autoScrub = {
enable = true;
interval = "monthly";
};
};
hardware.usbWwan.enable = true;

View File

@ -7,7 +7,7 @@ in
services = {
smartd = {
enable = true;
defaults.monitored = "-a -o on -s (S/../.././02|L/../../1/04)";
defaults.monitored = "-a -o on -s (S/../.././02|L/../15/./02)";
notifications.mail = {
enable = true;
recipient = "paul@nyanlout.re";

View File

@ -255,11 +255,6 @@ in
readWritePaths = [ "/var/lib/postfix/queue/maildrop" ];
postHook = ''
${pkgs.zfs}/bin/zfs destroy loutrepool/var/postgresql@borgsnap
if [[ $exitStatus == 0 ]]; then
${pkgs.rclone}/bin/rclone --config /mnt/secrets/rclone_loutre.conf sync -v $BORG_REPO BackupStorage:default
else
${backup_mail_alert}/bin/mail.sh
fi
'';
};
};