mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 17:28:33 +02:00
feat: update btrbk configs
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
services.btrbk.instances.btrbk = {
|
services.btrbk.instances.btrbk = {
|
||||||
# How often this btrbk instance is started. See systemd.time(7) for more information about the format.
|
# 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 = {
|
settings = {
|
||||||
# how to prune local snapshots:
|
# how to prune local snapshots:
|
||||||
# 1. keep daily snapshots for xx days
|
# 1. keep daily snapshots for xx days
|
||||||
|
|||||||
@@ -18,6 +18,12 @@
|
|||||||
"${toString modulesPath}/profiles/qemu-guest.nix"
|
"${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 = {
|
config = {
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-label/nixos";
|
device = "/dev/disk/by-label/nixos";
|
||||||
|
|||||||
Reference in New Issue
Block a user