Improve backups, again

This commit is contained in:
2026-02-12 17:12:18 +01:00
parent 1c8e467442
commit 262466c233
2 changed files with 16 additions and 5 deletions

View File

@@ -143,6 +143,18 @@
];
};
fileSystems."/media/home-backup" = {
device = "/dev/disk/by-uuid/4c0c8b24-6fca-49c1-8e34-e00e240576e3";
fsType = "btrfs";
options = [
"subvol=home-backup"
"space_cache=v2"
"compress=zstd:10"
"noatime"
"autodefrag"
];
};
fileSystems."/media/pipa" = {
device = "/dev/disk/by-uuid/0013f713-acf4-496b-b43f-25258283b884";
fsType = "f2fs";

View File

@@ -97,7 +97,7 @@
volume."/" = {
subvolume = "home";
snapshot_dir = "home/.snapshots";
snapshot_dir = "home/.snapshots/daily";
};
};
};
@@ -106,15 +106,14 @@
onCalendar = "weekly";
settings = {
timestamp_format = "long";
snapshot_preserve_min = "latest";
snapshot_preserve = "no";
target_preserve = "20w";
volume."/" = {
subvolume = "home";
snapshot_dir = "home/.snapshots";
target = "/media/data/home-backups";
snapshot_dir = "home/.snapshots/weekly";
target = "/media/home-backup";
};
};
};