mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/ni/services/backup: remove local external storage backup job
Much of the backup occurs on the user-level anyways and we have already made that.
This commit is contained in:
parent
e29d445e83
commit
507eb3f264
@ -22,7 +22,7 @@ let
|
|||||||
extraInitArgs = "--make-parent-dirs";
|
extraInitArgs = "--make-parent-dirs";
|
||||||
|
|
||||||
# We're emptying them since we're specifying them all through the patterns file.
|
# We're emptying them since we're specifying them all through the patterns file.
|
||||||
paths = [ ];
|
paths = lib.mkForce [ ];
|
||||||
|
|
||||||
persistentTimer = true;
|
persistentTimer = true;
|
||||||
preHook = ''
|
preHook = ''
|
||||||
@ -64,34 +64,19 @@ in
|
|||||||
});
|
});
|
||||||
|
|
||||||
suites.filesystem.setups = {
|
suites.filesystem.setups = {
|
||||||
archive.enable = true;
|
laptop-ssd.enable = true;
|
||||||
external-hdd.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.borgbackup.jobs = {
|
services.borgbackup.jobs = {
|
||||||
local-archive = borgJobCommonSetting {
|
local-external-storage = borgJobCommonSetting {
|
||||||
patterns = with config.sops; [
|
patterns = with config.sops; [
|
||||||
secrets."${pathPrefix}/patterns/home".path
|
|
||||||
secrets."${pathPrefix}/patterns/root".path
|
|
||||||
secrets."${pathPrefix}/patterns/keys".path
|
|
||||||
];
|
|
||||||
passCommand = "cat ${config.sops.secrets."${pathPrefix}/repos/archives/password".path}";
|
|
||||||
removableDevice = true;
|
|
||||||
repo = "/mnt/archives/Backups";
|
|
||||||
startAt = "04:30";
|
|
||||||
};
|
|
||||||
|
|
||||||
local-external-hdd = borgJobCommonSetting {
|
|
||||||
patterns = with config.sops; [
|
|
||||||
secrets."${pathPrefix}/patterns/home".path
|
|
||||||
secrets."${pathPrefix}/patterns/root".path
|
secrets."${pathPrefix}/patterns/root".path
|
||||||
secrets."${pathPrefix}/patterns/keys".path
|
secrets."${pathPrefix}/patterns/keys".path
|
||||||
];
|
];
|
||||||
passCommand = "cat ${config.sops.secrets."${pathPrefix}/repos/external-hdd/password".path}";
|
passCommand = "cat ${config.sops.secrets."${pathPrefix}/repos/external-hdd/password".path}";
|
||||||
removableDevice = true;
|
removableDevice = true;
|
||||||
doInit = true;
|
doInit = true;
|
||||||
repo = "/mnt/external-storage/Backups";
|
repo = "${config.state.paths.laptop-ssd}/Backups";
|
||||||
startAt = "04:30";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
remote-backup-hetzner-box = borgJobCommonSetting {
|
remote-backup-hetzner-box = borgJobCommonSetting {
|
||||||
|
Loading…
Reference in New Issue
Block a user