1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| cat > /var/spool/cron/crontabs/$USER <<'EOF'
0 1 * * * /usr/bin/python3 /mnt/mydisk/my-sh/hosts/DnsParse.py 0 13 * * * /usr/bin/python3 /mnt/mydisk/my-sh/hosts/DnsParse.py
25 1 * * * /mnt/my-sh/ssl/certbot-mobufan.eu.org.sh
35 1 * * * cp /etc/letsencrypt/live/mobufan.eu.org/fullchain.pem /etc/nginx/keyfile/cert.pem && cp /etc/letsencrypt/live/mobufan.eu.org/privkey.pem /etc/nginx/keyfile/key.pem
10 1 * * * mount -t nfs -o rw 10.10.10.254:/mnt/mydisk /mnt/ARS2-NFS
15 0 * * * rsync -avhzp --progress --delete /etc/hosts /mnt/mydisk/home/emby-amilys/config/hosts
20 1 * * * rsync -avhzp --progress --delete /etc/hosts /mnt/mydisk/home/nastools/config/hosts
10 2 * * * mkdir -p /mnt/ARS2-NFS/反向代理/nginx-666-bak/html && rsync -avhzp --progress --delete /var/www/html/* /mnt/ARS2-NFS/反向代理/nginx-666-bak/html/
15 2 * * * mkdir -p /mnt/ARS2-NFS/反向代理/nginx-666-bak/nginx && rsync -avhzp --progress --delete /etc/nginx/* /mnt/ARS2-NFS/反向代理/nginx-666-bak/nginx/
EOF
crontab -l
|