mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Improve backups, again
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user