rearrange docker
Some checks failed
ssh-test / ssh-test (push) Failing after 1m28s

This commit is contained in:
iFargle 2023-12-10 17:33:31 +09:00
parent 634f1184da
commit cccc3cf2e7

View file

@ -3,12 +3,12 @@
enable = true;
systemCronJobs = [
# Backups to nuc-docker01
''0 0 * * * root ${pkgs.rsync}/bin/rsync --delete -avr /Storage/Data/Docker/root@nuc-docker01:/Storage/Data/Docker/''
''0 3 * * * root ${pkgs.rsync}/bin/rsync -avr /Storage/Data/Docker/nextcloud/html/data/albert/files/InstantUpload/ root@nuc-docker01:/Storage/Video/Pictures/InstantUpload/''
''0 5 * * * root ${pkgs.rsync}/bin/rsync -avr /Storage/Data/Docker/nextcloud/html/data/albert/files/Wallpapers/ root@nuc-docker01:/Storage/Video/Pictures/Wallpapers''
''0 0 * * * root ${pkgs.rsync}/bin/rsync --delete -avr /Storage/Data/Docker/sysctl.io/root@nuc-docker01:/Storage/Data/Docker/sysctl.io/''
''0 3 * * * root ${pkgs.rsync}/bin/rsync -avr /Storage/Data/Docker/sysctl.io/nextcloud/html/data/albert/files/InstantUpload/ root@nuc-docker01:/Storage/Video/Pictures/InstantUpload/''
''0 5 * * * root ${pkgs.rsync}/bin/rsync -avr /Storage/Data/Docker/sysctl.io/nextcloud/html/data/albert/files/Wallpapers/ root@nuc-docker01:/Storage/Video/Pictures/Wallpapers''
# DERP relay certs
''@hourly root cp /Storage/Data/Docker/letsencrypt/certs/certs/\*.sysctl.io.crt /Storage/Data/Docker/letsencrypt/certs/certs/derp.sysctl.io.crt''
''@hourly root cp /Storage/Data/Docker/letsencrypt/certs/private/\*.sysctl.io.key /Storage/Data/Docker/letsencrypt/certs/private/derp.sysctl.io.key''
''@hourly root cp /Storage/Data/Docker/sysctl.io/letsencrypt/certs/certs/\*.sysctl.io.crt /Storage/Data/Docker/sysctl.io/letsencrypt/certs/certs/derp.sysctl.io.crt''
''@hourly root cp /Storage/Data/Docker/sysctl.io/letsencrypt/certs/private/\*.sysctl.io.key /Storage/Data/Docker/sysctl.io/letsencrypt/certs/private/derp.sysctl.io.key''
# 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