Compare commits
1 commit
a21636baa2
...
cac7f7013e
Author | SHA1 | Date | |
---|---|---|---|
cac7f7013e |
3 changed files with 7 additions and 5 deletions
|
@ -32,10 +32,7 @@
|
|||
|
||||
services.zfs = {
|
||||
autoSnapshot.enable = true;
|
||||
autoScrub = {
|
||||
enable = true;
|
||||
interval = "monthly";
|
||||
};
|
||||
autoScrub.enable = true;
|
||||
};
|
||||
|
||||
hardware.usbWwan.enable = true;
|
||||
|
|
|
@ -7,7 +7,7 @@ in
|
|||
services = {
|
||||
smartd = {
|
||||
enable = true;
|
||||
defaults.monitored = "-a -o on -s (S/../.././02|L/../15/./02)";
|
||||
defaults.monitored = "-a -o on -s (S/../.././02|L/../../1/04)";
|
||||
notifications.mail = {
|
||||
enable = true;
|
||||
recipient = "paul@nyanlout.re";
|
||||
|
|
|
@ -255,6 +255,11 @@ 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue