From 17b252413ac3a7e8c859f12604951e24ec38a253 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 16 Dec 2024 03:05:20 +0100 Subject: [PATCH] update cronjobs for btrfs sends --- nixos/hosts/nixos-framework/disks.nix | 1 - nixos/hosts/nuc-server/disks.nix | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/nixos-framework/disks.nix b/nixos/hosts/nixos-framework/disks.nix index 9a081ba9..122beb12 100644 --- a/nixos/hosts/nixos-framework/disks.nix +++ b/nixos/hosts/nixos-framework/disks.nix @@ -1,7 +1,6 @@ { imports = [ ../../common/services/snapper.nix ]; - services.cron = { systemCronJobs = [ # Back up Local-Storage to NFS Storage diff --git a/nixos/hosts/nuc-server/disks.nix b/nixos/hosts/nuc-server/disks.nix index 99c72a2c..88ff6005 100644 --- a/nixos/hosts/nuc-server/disks.nix +++ b/nixos/hosts/nuc-server/disks.nix @@ -1,6 +1,16 @@ { imports = [ ../../common/services/snapper.nix ]; + services.cron = { + systemCronJobs = [ + # Back up Local-Storage to NFS Storage + "0 0 * * 3 albert sudo btrfs-backup root" + "0 2 * * 3 albert sudo btrfs-backup nix" + "0 4 * * 3 albert sudo btrfs-backup home" + "0 6 * * 3 albert sudo btrfs-backup Local-Storage" + ]; + }; + # extra configs not present in the standard config above services.snapper.configs.Local-Storage = { TIMELINE_CREATE = true;