fix backup config
This commit is contained in:
parent
aecacc75d4
commit
dc468ea4fe
@ -236,6 +236,10 @@ in
|
|||||||
"/var/sieve"
|
"/var/sieve"
|
||||||
"/var/vmail"
|
"/var/vmail"
|
||||||
];
|
];
|
||||||
|
exclude = [
|
||||||
|
"/var/lib/radarr/.config/Radarr/radarr.db-wal"
|
||||||
|
"/var/lib/radarr/.config/Radarr/radarr.db-shm"
|
||||||
|
];
|
||||||
repo = "/mnt/backup/borg";
|
repo = "/mnt/backup/borg";
|
||||||
encryption = {
|
encryption = {
|
||||||
mode = "repokey-blake2";
|
mode = "repokey-blake2";
|
||||||
@ -248,10 +252,11 @@ in
|
|||||||
monthly = 12;
|
monthly = 12;
|
||||||
};
|
};
|
||||||
preHook = "${pkgs.zfs}/bin/zfs snapshot loutrepool/var/postgresql@borgsnap";
|
preHook = "${pkgs.zfs}/bin/zfs snapshot loutrepool/var/postgresql@borgsnap";
|
||||||
|
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
|
if [[ $exitStatus == 0 ]]; then
|
||||||
${pkgs.rclone}/bin/rclone --config /mnt/secrets/rclone_loutre.conf sync -v $BORG_REPO BackupStorage:loutre
|
${pkgs.rclone}/bin/rclone --config /mnt/secrets/rclone_loutre.conf sync -v $BORG_REPO BackupStorage:default
|
||||||
else
|
else
|
||||||
${backup_mail_alert}/bin/mail.sh
|
${backup_mail_alert}/bin/mail.sh
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user