Fix backup folder configuration

This commit is contained in:
Fabian Hauser 2020-10-26 00:33:44 +00:00
parent caea091e81
commit feb85c5350
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
mountService = "var-backup.mount"; mountService = "var-backup-disk.mount";
repo = "/var/backup/montalin"; # TODO: Does this make sense? repo = "/var/backup/disk/montalin"; # TODO: Does this make sense?
in { in {
services.borgbackup.jobs = { services.borgbackup.jobs = {
data = { data = {
@ -27,7 +27,7 @@ in {
passphrase = ""; passphrase = "";
}; };
repo = repo; repo = repo;
startAt = "07:00:"; startAt = "07:00";
environment.BORG_BASE_DIR = "${repo}/borg-base-dir"; environment.BORG_BASE_DIR = "${repo}/borg-base-dir";
}; };
}; };

View file

@ -11,7 +11,7 @@
fsType = "btrfs"; fsType = "btrfs";
options = [ "defaults" "noatime" ]; options = [ "defaults" "noatime" ];
}; };
"/var/backup" = { "/var/backup/disk" = {
device = "/dev/mapper/backup"; device = "/dev/mapper/backup";
fsType = "ext4"; fsType = "ext4";
options = [ "defaults" "noauto" "noatime" ]; options = [ "defaults" "noauto" "noatime" ];