diff --git a/nixos/hosts/framework-server/cron.nix b/nixos/hosts/framework-server/cron.nix index 69def89a..df4e0b09 100644 --- a/nixos/hosts/framework-server/cron.nix +++ b/nixos/hosts/framework-server/cron.nix @@ -13,7 +13,7 @@ # Back up the docker containers weekly: ''@weekly root ssh nuc-docker01 "rm -rf /Storage/Backups/Docker/sysctl.io/*"; for i in $(docker ps --format '{{.Names}}'); do docker export $i | gzip -cf | ssh root@nuc-docker01 "cat > /Storage/Backups/Docker/sysctl.io/$i.tar.gz"; done'' # Set a random Pi-Hole password - ''* * * * * /usr/bin/docker exec pihole sudo pihole -a -p $(openssl rand -hex 128)'' + ''* * * * * root docker exec pihole sudo pihole -a -p $(openssl rand -hex 128)'' # Run the ClamAV scan ''@monthly root /Storage/Data/docker-compose/sysctl.io/scripts/clamscan-cron.sh'' # Back up Loki logs monthly