1
0

hosts/palladium: prevent borg filling up root partition

This commit is contained in:
clerie 2023-04-23 15:00:42 +02:00
parent 882df0098f
commit 93f1fa77e0
2 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,9 @@ let
${pkgs.cryptsetup}/bin/cryptsetup luksOpen ''${DEVICE} external-drive
mkdir -p /mnt/external-drive
mount /dev/mapper/external-drive /mnt/external-drive
mkdir -p /mnt/external-drive/clerie-backup
chown borg:borg -R /mnt/external-drive/clerie-backup
'';
cb-unmount = pkgs.writeScriptBin "cb-unmount" ''

View File

@ -41,6 +41,12 @@
};
};
# Disable automatic directory creation for external-drive repo
# The directory gets created by the disk formatting script
# Correct permissons will be set right after mounting
# This prevents borg from filling up the root drive when no drive is mounted
systemd.services.borgbackup-repo-external-drive.enable = false;
clerie.monitoring = {
enable = true;
id = "206";