Compare commits
2 Commits
cac7f7013e
...
a21636baa2
Author | SHA1 | Date | |
---|---|---|---|
a21636baa2 | |||
418a7ba107 |
@ -32,7 +32,10 @@
|
|||||||
|
|
||||||
services.zfs = {
|
services.zfs = {
|
||||||
autoSnapshot.enable = true;
|
autoSnapshot.enable = true;
|
||||||
autoScrub.enable = true;
|
autoScrub = {
|
||||||
|
enable = true;
|
||||||
|
interval = "monthly";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.usbWwan.enable = true;
|
hardware.usbWwan.enable = true;
|
||||||
|
@ -7,7 +7,7 @@ in
|
|||||||
services = {
|
services = {
|
||||||
smartd = {
|
smartd = {
|
||||||
enable = true;
|
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 = {
|
notifications.mail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recipient = "paul@nyanlout.re";
|
recipient = "paul@nyanlout.re";
|
||||||
|
@ -239,7 +239,8 @@ in
|
|||||||
"/var/lib/radarr/.config/Radarr/radarr.db-wal"
|
"/var/lib/radarr/.config/Radarr/radarr.db-wal"
|
||||||
"/var/lib/radarr/.config/Radarr/radarr.db-shm"
|
"/var/lib/radarr/.config/Radarr/radarr.db-shm"
|
||||||
];
|
];
|
||||||
repo = "/mnt/backup/borg";
|
repo = "ssh://u306925@u306925.your-storagebox.de:23/./loutreos";
|
||||||
|
environment = { BORG_RSH = "ssh -i /mnt/secrets/hetzner_ssh_key"; };
|
||||||
encryption = {
|
encryption = {
|
||||||
mode = "repokey-blake2";
|
mode = "repokey-blake2";
|
||||||
passCommand = "cat /mnt/secrets/borgbackup_loutre_encryption_pass";
|
passCommand = "cat /mnt/secrets/borgbackup_loutre_encryption_pass";
|
||||||
@ -254,11 +255,6 @@ in
|
|||||||
readWritePaths = [ "/var/lib/postfix/queue/maildrop" ];
|
readWritePaths = [ "/var/lib/postfix/queue/maildrop" ];
|
||||||
postHook = ''
|
postHook = ''
|
||||||
${pkgs.zfs}/bin/zfs destroy loutrepool/var/postgresql@borgsnap
|
${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…
Reference in New Issue
Block a user