mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Enhance backups
This commit is contained in:
@@ -88,19 +88,38 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
btrbk.instances.localbackup = {
|
btrbk.instances = {
|
||||||
onCalendar = "weekly";
|
daily_ssd = {
|
||||||
|
onCalendar = "daily";
|
||||||
settings = {
|
settings = {
|
||||||
snapshot_preserve_min = "3w";
|
timestamp_format = "long";
|
||||||
target_preserve_min = "6w";
|
snapshot_preserve = "7d";
|
||||||
|
|
||||||
volume."/" = {
|
volume."/" = {
|
||||||
subvolume = "home";
|
subvolume = "home";
|
||||||
target = "/media/data/home-backups";
|
|
||||||
snapshot_dir = "home/.snapshots";
|
snapshot_dir = "home/.snapshots";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
weekly_hdd = {
|
||||||
|
onCalendar = "weekly";
|
||||||
|
settings = {
|
||||||
|
timestamp_format = "long";
|
||||||
|
|
||||||
|
snapshot_preserve_min = "latest";
|
||||||
|
|
||||||
|
target_preserve = "20w";
|
||||||
|
|
||||||
|
volume."/" = {
|
||||||
|
subvolume = "home";
|
||||||
|
snapshot_dir = "home/.snapshots";
|
||||||
|
target = "/media/data/home-backups";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
fstrim = {
|
fstrim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interval = "weekly";
|
interval = "weekly";
|
||||||
|
|||||||
Reference in New Issue
Block a user