feat: update btrbk configs

This commit is contained in:
Ryan Yin
2024-07-30 11:41:38 +08:00
parent e2457e80aa
commit 0620f199b2
2 changed files with 7 additions and 1 deletions

View File

@@ -18,7 +18,7 @@
services.btrbk.instances.btrbk = {
# How often this btrbk instance is started. See systemd.time(7) for more information about the format.
onCalendar = "Tue,Fri,Sat,Sun *-*-* 3:45:20"; # daily at 3:45, except on Monday, Wednesday, and Thursday
onCalendar = "Tue,Thu,Sat *-*-* 3:45:20";
settings = {
# how to prune local snapshots:
# 1. keep daily snapshots for xx days

View File

@@ -18,6 +18,12 @@
"${toString modulesPath}/profiles/qemu-guest.nix"
];
# backup only once a week inside all virtual machines
services.btrbk.instances.btrbk = {
onCalendar = lib.mkForce "Wed *-*-* 5:25:20";
settings.snapshot_preserve = lib.mkForce "7d";
};
config = {
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";