From 1a9ed94290cd7b6e296984835a7d5f279c393bd4 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 16 Dec 2024 15:54:07 +0100 Subject: [PATCH] Update nixos-desktop to send backups to synology --- nixos/hosts/nixos-desktop/disks.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/nixos-desktop/disks.nix b/nixos/hosts/nixos-desktop/disks.nix index 28ffc6d4..4a29639f 100644 --- a/nixos/hosts/nixos-desktop/disks.nix +++ b/nixos/hosts/nixos-desktop/disks.nix @@ -1,6 +1,14 @@ { 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" + ]; + }; + services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly";