2024-06-02 21:38:48 +02:00
|
|
|
{ config, factsGenerator, ... }:
|
2024-06-06 01:55:45 +02:00
|
|
|
let
|
|
|
|
tld = config.clan.static-hosts.topLevelDomain;
|
|
|
|
in
|
2023-05-02 21:02:16 +02:00
|
|
|
{
|
2024-06-19 13:19:55 +02:00
|
|
|
clan.core.facts.services.rbackup = factsGenerator.ssh { name = "rbackup"; };
|
2023-05-02 21:02:16 +02:00
|
|
|
|
2024-05-19 01:17:45 +02:00
|
|
|
# todo : replace all of them with syncoid
|
2023-05-02 21:02:16 +02:00
|
|
|
rbackup.plans = {
|
2024-04-12 23:09:40 +02:00
|
|
|
git = {
|
2024-06-19 13:19:55 +02:00
|
|
|
sshKeyPath = config.clan.core.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path;
|
2024-06-06 01:55:45 +02:00
|
|
|
src = "root@orbi.${tld}:/var/lib/forgejo/";
|
2024-04-12 23:09:40 +02:00
|
|
|
dst = "/mirror/git";
|
|
|
|
};
|
2023-05-02 21:02:16 +02:00
|
|
|
taskwarrior = {
|
2024-06-19 13:19:55 +02:00
|
|
|
sshKeyPath = config.clan.core.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path;
|
2024-06-06 01:55:45 +02:00
|
|
|
src = "root@orbi.${tld}:/var/lib/taskserver/";
|
2023-07-08 03:15:18 +02:00
|
|
|
dst = "/mirror/taskwarrior";
|
2023-05-02 21:02:16 +02:00
|
|
|
};
|
2024-04-16 09:31:50 +02:00
|
|
|
vaultwarden = {
|
2024-06-19 13:19:55 +02:00
|
|
|
sshKeyPath = config.clan.core.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path;
|
2024-06-06 01:55:45 +02:00
|
|
|
src = "root@orbi.${tld}:/var/lib/bitwarden_rs/";
|
2024-04-16 08:36:02 +02:00
|
|
|
dst = "/mirror/vaultwarden";
|
2023-05-02 21:02:16 +02:00
|
|
|
};
|
2024-04-07 10:19:27 +02:00
|
|
|
radarr = {
|
2024-06-19 13:19:55 +02:00
|
|
|
sshKeyPath = config.clan.core.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path;
|
2024-06-06 01:55:45 +02:00
|
|
|
src = "root@orbi.${tld}:/media/arr/radarr";
|
2024-04-07 10:19:27 +02:00
|
|
|
dst = "/media/arr/radarr";
|
|
|
|
delete = false;
|
|
|
|
};
|
|
|
|
sonarr = {
|
2024-06-19 13:19:55 +02:00
|
|
|
sshKeyPath = config.clan.core.facts.services.rbackup.secret."ssh.rbackup.id_ed25519".path;
|
2024-06-06 01:55:45 +02:00
|
|
|
src = "root@orbi.${tld}:/media/arr/sonarr";
|
2024-04-07 10:19:27 +02:00
|
|
|
dst = "/media/arr/sonarr";
|
|
|
|
delete = false;
|
|
|
|
};
|
2023-05-02 21:02:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|