2023-04-12 22:09:37 +02:00
|
|
|
{
|
|
|
|
fileSystems."/mnt/backup" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/f6905cdb-c130-465a-90a3-93997023b5d3 ";
|
|
|
|
fsType = "btrfs";
|
2023-05-26 14:50:29 +02:00
|
|
|
options = [ "compress=zstd" "noatime" "nofail" ];
|
2023-04-12 22:09:37 +02:00
|
|
|
neededForBoot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/mnt/pool" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/16b0bd14-1b07-477d-a20d-982f9467f6df";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "compress=zstd" "noatime" ];
|
|
|
|
};
|
2023-04-12 22:09:46 +02:00
|
|
|
|
2023-04-12 22:09:37 +02:00
|
|
|
services.btrbk = {
|
2023-04-24 22:11:57 +02:00
|
|
|
instances."nuc-to-disk".settings = {
|
|
|
|
snapshot_preserve = "14d";
|
|
|
|
snapshot_preserve_min = "2d";
|
|
|
|
target_preserve = "30d 4w 12m";
|
|
|
|
target_preserve_min = "2d";
|
|
|
|
volume = {
|
|
|
|
"/mnt/pool" = {
|
|
|
|
subvolume = {
|
|
|
|
log = {
|
|
|
|
snapshot_create = "always";
|
|
|
|
};
|
|
|
|
lib = {
|
|
|
|
snapshot_create = "always";
|
2023-04-12 22:09:37 +02:00
|
|
|
};
|
|
|
|
};
|
2023-04-24 22:11:57 +02:00
|
|
|
target = "/mnt/backup/nuc";
|
2023-04-12 22:09:37 +02:00
|
|
|
};
|
|
|
|
};
|
2023-04-24 22:11:57 +02:00
|
|
|
};
|
2023-04-12 22:09:37 +02:00
|
|
|
};
|
|
|
|
}
|