fwminex: merged backup dirs
This commit is contained in:
parent
cfa0d1bfb4
commit
6be2edaac1
@ -105,22 +105,19 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
passwordPath = config.age.secrets.borgbackup-password.path;
|
passwordPath = config.age.secrets.borgbackup-password.path;
|
||||||
sshKeyPath = "/etc/ssh/ssh_host_ed25519_key";
|
sshKeyPath = "/etc/ssh/ssh_host_ed25519_key";
|
||||||
dirs = [
|
dirs =
|
||||||
# TODO: merge
|
builtins.concatMap
|
||||||
|
(host: [
|
||||||
{
|
{
|
||||||
|
repo = "${host}:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
|
||||||
subvolume = "/home";
|
subvolume = "/home";
|
||||||
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
|
|
||||||
paths = [ "motiejus/annex2" ];
|
|
||||||
backup_at = "*-*-* 02:30:01 UTC";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
subvolume = "/home";
|
|
||||||
repo = "borgstor@${
|
|
||||||
myData.hosts."vno3-rp3b.servers.jakst".jakstIP
|
|
||||||
}:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
|
|
||||||
paths = [ "motiejus/annex2" ];
|
paths = [ "motiejus/annex2" ];
|
||||||
backup_at = "*-*-* 02:30:01 UTC";
|
backup_at = "*-*-* 02:30:01 UTC";
|
||||||
}
|
}
|
||||||
|
])
|
||||||
|
[
|
||||||
|
"zh2769@zh2769.rsync.net"
|
||||||
|
"borgstor@${myData.hosts."vno3-rp3b.servers.jakst".jakstIP}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user