diff --git a/hosts/jupiter/hardware-configuration.nix b/hosts/jupiter/hardware-configuration.nix index f4d7d06..c2003b2 100644 --- a/hosts/jupiter/hardware-configuration.nix +++ b/hosts/jupiter/hardware-configuration.nix @@ -15,7 +15,7 @@ { imports = [(modulesPath + "/profiles/qemu-guest.nix")] ++ - [( import ../../modules/hardware/backup.nix )]; + [( import ../../modules/hardware/backup.nix )]; boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; boot.initrd.kernelModules = [ ]; diff --git a/hosts/nasbackup/hardware-configuration.nix b/hosts/nasbackup/hardware-configuration.nix index be9ac14..c9c7a44 100644 --- a/hosts/nasbackup/hardware-configuration.nix +++ b/hosts/nasbackup/hardware-configuration.nix @@ -74,9 +74,9 @@ }; }; bak = { - stream_compress = "lz4"; onCalendar = "weekly"; settings = { + stream_compress = "lz4"; incremental = "yes"; snapshot_create = "no"; snapshot_dir = "@snapshots"; @@ -86,7 +86,8 @@ target_preserve_min = "no"; target_preserve = "4w 2m"; - ssh_identity = "/etc/btrbk/ssh/id_ed25512_btrbk"; + ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk"; + ssh_user = "btrbk"; volume = { "ssh://jupiter.home.opel-online.de/mnt/snapshots/Mars" = { @@ -100,7 +101,11 @@ "ssh://jupiter.home.opel-online.de/mnt/snapshots/Pluto" = { target = "/mnt/nas/Backups/nas/Pluto"; subvolume = { - "@" = {}; + "@/Games" = {}; + "@/IT" = {}; + "@/Media" = {}; + "@/Pictures" = {}; + "@/Rest" = {}; }; }; }; @@ -181,7 +186,7 @@ fileSystems."/mnt/nas" = { device = "/dev/disk/by-uuid/6f53d32d-b56f-42ec-bfad-c0b8d1114015"; fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,noatime,subvol=@nasbak" ]; + options = [ "compress=zstd:9,space_cache=v2,noatime,subvol=@nasbak" ]; }; fileSystems."/boot" =