From 88236772609bc7204869e11bbc9051093b81d8e2 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 16 Dec 2024 03:27:46 +0100 Subject: [PATCH] Update framework-server btrfs-backup schedules --- nixos/hosts/framework-server/disks.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/hosts/framework-server/disks.nix b/nixos/hosts/framework-server/disks.nix index 60d7899a..225d040e 100644 --- a/nixos/hosts/framework-server/disks.nix +++ b/nixos/hosts/framework-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 Storage" + ]; + }; + # extra configs not present in the standard config above services.snapper.configs.Storage = { TIMELINE_CREATE = true;