This commit is contained in:
albert 2024-11-20 23:03:31 +01:00
parent 5ec46ef10c
commit 7de6df4aef
Signed by: albert
GPG key ID: 3895DD267CA11BA9
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
enable = true; enable = true;
systemCronJobs = [ systemCronJobs = [
# Back up Local-Storage to NFS Storage # Back up Local-Storage to NFS Storage
# "0 9 * * * root rsync -avr /Local-Storage/Data/Docker/ifargle.com/vpn-stack/ /Storage/Data/Docker/ifargle.com/vpn-stack/" "0 9 * * * root rsync -avr /Local-Storage/Data/Docker/ifargle.com/vpn-stack/ /Storage/Data/Docker/ifargle.com/vpn-stack/"
# Back up running containers weekly # 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" "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 # Restart the VPN stack

View file

@ -29,7 +29,7 @@
# Set the networking hostname: # Set the networking hostname:
networking.hostName = "nuc-server"; networking.hostName = "nuc-server";
networking.firewall.allowedTCPPorts = [ 22 ]; # networking.firewall.allowedTCPPorts = [ 22 ];
services.tailscale.extraUpFlags = [ services.tailscale.extraUpFlags = [
"--advertise-exit-node" "--advertise-exit-node"