From fd8bf7013beb704f1461304f7a239affcd2c7c6a Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 15 Dec 2024 20:07:25 +0100 Subject: [PATCH] Update cron nuc-server --- nixos/hosts/nuc-server/cron.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/hosts/nuc-server/cron.nix b/nixos/hosts/nuc-server/cron.nix index 643908d0..65d4f8b6 100644 --- a/nixos/hosts/nuc-server/cron.nix +++ b/nixos/hosts/nuc-server/cron.nix @@ -6,6 +6,7 @@ "0 9 * * * root rsync -avr /Local-Storage/Data/Docker/ifargle.com/vpn-stack/ /Storage/Data/Docker/ifargle.com/vpn-stack/" "0 8 * * * root rsync -avr /Local-Storage/Data/Docker/ifargle.com/dsm-kmip/ /Storage/Data/Docker/ifargle.com/dsm-kmip/" "0 7 * * * root rsync -avr /Local-Storage/Data/Docker/ifargle.com/dsm-kmip-backup/ /Storage/Data/Docker/ifargle.com/dsm-kmip-backup/" + "* * * * * root rsync -avr /Storage/Data/docker-compose/ /Local-Storage/Data/docker-compose/" # Back up running containers weekly "0 0 * * * root rm -rf /Storage/Backups/Docker/ifargle.com/*; for i in $(docker ps --format '{{.Names}}'); do docker export $i | gzip -cf | cat > /Storage/Backups/Docker/ifargle.com/$i.tar.gz; done" # Restart the VPN stack