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, ... }:
|
{ 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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue