Fix backup folder configuration
This commit is contained in:
parent
caea091e81
commit
feb85c5350
2 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
fsType = "btrfs";
|
||||
options = [ "defaults" "noatime" ];
|
||||
};
|
||||
"/var/backup" = {
|
||||
"/var/backup/disk" = {
|
||||
device = "/dev/mapper/backup";
|
||||
fsType = "ext4";
|
||||
options = [ "defaults" "noauto" "noatime" ];
|
||||
|
|
Loading…
Add table
Reference in a new issue