migrate nextcloud and matrix-terranix backup to syncoid
This commit is contained in:
parent
ab4a870d0f
commit
fda2ea3119
7 changed files with 25 additions and 12 deletions
|
@ -38,7 +38,6 @@
|
|||
./telemetry/loki.nix
|
||||
|
||||
./sync-rbackup.nix
|
||||
./sync-script.nix
|
||||
./sync-syncoid.nix
|
||||
|
||||
./service-atuin.nix
|
||||
|
|
|
@ -2,13 +2,8 @@
|
|||
{
|
||||
sops.secrets.rsync_private_key = { };
|
||||
|
||||
# todo : replace all of them with syncoid
|
||||
rbackup.plans = {
|
||||
# todo : syncoid
|
||||
nextcloud = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@orbi:/var/lib/nixos-containers/nextcloud";
|
||||
dst = "/mirror/nextcloud";
|
||||
};
|
||||
git = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@orbi:/var/lib/forgejo/";
|
||||
|
@ -24,11 +19,6 @@
|
|||
src = "root@orbi:/var/lib/bitwarden_rs/";
|
||||
dst = "/mirror/vaultwarden";
|
||||
};
|
||||
matrix-terranix = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@orbi:/var/lib/nixos-containers/matrix-terranix";
|
||||
dst = "/mirror/matrix-terranix";
|
||||
};
|
||||
radarr = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@orbi:/media/arr/radarr";
|
||||
|
|
|
@ -24,6 +24,16 @@
|
|||
};
|
||||
|
||||
# remote
|
||||
commands.matrix-terranix = {
|
||||
sshKey = config.sops.secrets.syncoid_private_key.path;
|
||||
source = "root@orbi:zroot/matrix-terranix";
|
||||
target = "zraid/mirror/matrix-terranix"; # should not be created up front!
|
||||
};
|
||||
commands.nextcloud = {
|
||||
sshKey = config.sops.secrets.syncoid_private_key.path;
|
||||
source = "root@orbi:zroot/nextcloud";
|
||||
target = "zraid/mirror/nextcloud"; # should not be created up front!
|
||||
};
|
||||
commands.photoprism = {
|
||||
sshKey = config.sops.secrets.syncoid_private_key.path;
|
||||
source = "root@orbi:zmedia/photoprism";
|
||||
|
|
|
@ -112,6 +112,18 @@ in
|
|||
#"com.sun:auto-snapshot:monthly" = false;
|
||||
};
|
||||
};
|
||||
"matrix-terranix" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/var/lib/nixos-containers/matrix-terranix";
|
||||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot:hourly" = toString true;
|
||||
"com.sun:auto-snapshot:daily" = toString true;
|
||||
#"com.sun:auto-snapshot:weekly" = false;
|
||||
#"com.sun:auto-snapshot:monthly" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ in
|
|||
imports = [ ../../components/monitor/container.nix ];
|
||||
components.monitor.container.promtail.port = 3502;
|
||||
system.stateVersion = "23.11";
|
||||
services.journald.extraConfig = "SystemMaxUse=1G";
|
||||
|
||||
# Configuring nameservers for containers is currently broken.
|
||||
# Therefore in some cases internet connectivity can be broken inside the containers.
|
||||
|
|
|
@ -18,6 +18,7 @@ in
|
|||
imports = [ ../../components/monitor/container.nix ];
|
||||
components.monitor.container.promtail.port = 3503;
|
||||
system.stateVersion = "23.11";
|
||||
services.journald.extraConfig = "SystemMaxUse=1G";
|
||||
|
||||
# Photoprism
|
||||
# ----------
|
||||
|
|
Loading…
Reference in a new issue