orm, elucredassa: minor cleanup to backup prototype

This commit is contained in:
Katherina Walshe-Grey 2025-02-08 03:45:17 +00:00
parent 3ec0a2fcb9
commit 1bdb16c788
2 changed files with 4 additions and 10 deletions

View file

@ -25,11 +25,11 @@ in
# TODO: modularise this # TODO: modularise this
randomcat.services.zfs.datasets = { randomcat.services.zfs.datasets = {
"rpool_elucredassa/backups" = { "rpool_elucredassa/backup" = { mountpoint = "none"; };
"rpool_elucredassa/backup/orm" = {
mountpoint = "none"; mountpoint = "none";
zfsPermissions.users.syncoid = [ "mount" "create" "receive" "recordsize" ]; zfsPermissions.users.syncoid = [ "mount" "create" "receive" "recordsize" ];
}; };
"rpool_elucredassa/backups/rpool_orm" = { mountpoint = "none"; };
}; };
services.syncoid = { services.syncoid = {
enable = true; enable = true;
@ -38,10 +38,9 @@ in
commands = { commands = {
"testing1" = { "testing1" = {
source = "backup@10.127.1.2:rpool_orm/state"; source = "backup@10.127.1.2:rpool_orm/state";
target = "rpool_elucredassa/backups/rpool_orm/state"; target = "rpool_elucredassa/backup/orm/state";
recursive = true; recursive = true;
recvOptions = "ux recordsize o compression=lz4"; recvOptions = "ux recordsize o compression=lz4";
extraArgs = [ "--debug" ];
}; };
}; };
}; };

View file

@ -40,12 +40,7 @@
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFa3hjej6KGmS2aQ4s46Y7U8pN4yyR2FuMofpHRwXNk syncoid@elucredassa" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFa3hjej6KGmS2aQ4s46Y7U8pN4yyR2FuMofpHRwXNk syncoid@elucredassa"
]; ];
packages = with pkgs; [ mbuffer lzop ]; # syncoid uses these if available but doesn't pull them in automatically
# syncoid uses these if available but doesn't pull them in automatically
packages = with pkgs; [
pkgs.mbuffer
pkgs.lzop
];
}; };
users.groups.backup = { }; users.groups.backup = { };