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

View file

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