nixos-config/nixos/machines/chungus/sync-rbackup.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

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