mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Add weekly home backup
This commit is contained in:
@@ -84,6 +84,19 @@
|
||||
};
|
||||
};
|
||||
|
||||
btrbk.instances.localbackup = {
|
||||
onCalendar = "weekly";
|
||||
settings = {
|
||||
snapshot_preserve_min = "3w";
|
||||
target_preserve_min = "6w";
|
||||
volume."/" = {
|
||||
subvolume = "home";
|
||||
target = "/media/data/home-backups";
|
||||
snapshot_dir = "home/.snapshots";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fstrim = {
|
||||
enable = true;
|
||||
interval = "weekly";
|
||||
|
||||
Reference in New Issue
Block a user