mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-17 23:14:07 +01:00
feat: update btrbk configs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user