hosts/palladium: prevent borg filling up root partition
This commit is contained in:
parent
882df0098f
commit
93f1fa77e0
@ -9,6 +9,9 @@ let
|
|||||||
${pkgs.cryptsetup}/bin/cryptsetup luksOpen ''${DEVICE} external-drive
|
${pkgs.cryptsetup}/bin/cryptsetup luksOpen ''${DEVICE} external-drive
|
||||||
mkdir -p /mnt/external-drive
|
mkdir -p /mnt/external-drive
|
||||||
mount /dev/mapper/external-drive /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" ''
|
cb-unmount = pkgs.writeScriptBin "cb-unmount" ''
|
||||||
|
@ -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 = {
|
clerie.monitoring = {
|
||||||
enable = true;
|
enable = true;
|
||||||
id = "206";
|
id = "206";
|
||||||
|
Loading…
Reference in New Issue
Block a user