hosts: move from snapper to btrbk fix
This commit is contained in:
parent
1df6cd6763
commit
ab748266ea
@ -44,17 +44,18 @@
|
|||||||
fileSystems = [
|
fileSystems = [
|
||||||
"/"
|
"/"
|
||||||
"/mnt/Pluto"
|
"/mnt/Pluto"
|
||||||
# "/mnt/Mars"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.btrbk = {
|
services.btrbk = {
|
||||||
instances = {
|
instances = {
|
||||||
hf = {
|
hf = {
|
||||||
|
onCalendar = "hourly";
|
||||||
settings = {
|
settings = {
|
||||||
incremental = "yes";
|
incremental = "yes";
|
||||||
snapshot_create = "ondemand";
|
snapshot_create = "ondemand";
|
||||||
snapshot_dir = "@snapshots";
|
snapshot_dir = "@snapshots";
|
||||||
|
timestamp_format = "long";
|
||||||
|
|
||||||
snapshot_preserve = "2m 2w 5d 5h";
|
snapshot_preserve = "2m 2w 5d 5h";
|
||||||
snapshot_preserve_min = "latest";
|
snapshot_preserve_min = "latest";
|
||||||
@ -105,13 +106,13 @@
|
|||||||
fileSystems."/mnt/snapshots/Mars" =
|
fileSystems."/mnt/snapshots/Mars" =
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-label/NIXROOT";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@snapshots/mars/home,discard=async" ];
|
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/snapshots/Pluto" =
|
fileSystems."/mnt/snapshots/Pluto" =
|
||||||
{ device = "/dev/disk/by-label/NAS-RAID";
|
{ device = "/dev/disk/by-label/NAS-RAID";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "compress=zstd,space_cache=v2,noatime,subvol=@snapshots" ];
|
options = [ "compress=zstd,space_cache=v2,noatime,subvolid=5" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/Pluto" =
|
fileSystems."/mnt/Pluto" =
|
||||||
|
Loading…
Reference in New Issue
Block a user