Cronjobs

New Backup Import Export Get from crontab Save to crontab

# Name Job Time Last Modified
1. 1712312673663_5 run-parts /etc/periodic/weekly 0 3 * * 6 2 years ago Enable
2. 1712312673663_4 run-parts /etc/periodic/daily 0 2 * * * 2 years ago Enable
3. 1712312673663_6 run-parts /etc/periodic/monthly 0 5 1 * * 2 years ago Enable
4. 1712312673663_3 run-parts /etc/periodic/hourly 0 * * * * 2 years ago Enable
5. 1712312673663_2 run-parts /etc/periodic/15min */15 * * * * 2 years ago Enable
6. totolab.desec.io DOMAIN="totolab.dedyn.io"; SUB="*"; TTL="3600"; TOKEN="6KcUM719mLQy8CTcYB8BCjjW6yZE"; LOG="/var/desec_update.log"; ERR="/var/desec_err.log"; HOST="${SUB:+$SUB.}${DOMAIN}"; CUR=$(curl -fsS https://checkip.dedyn.io 2>> "$ERR"); if [ -z "$CUR" ]; then echo "$(date '+\%Y-\%m-\%d \%T') [ERROR] Failed to fetch WAN IP" >> "$ERR"; else DNS=$(dig +short "$HOST" @ns1.desec.io 2>/dev/null | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1); [ -z "$DNS" ] && DNS=$(getent ahostsv4 "$HOST" 2>/dev/null | awk 'NR==1{print $1}'); DNS="${DNS:-NONE}"; DEC="none"; [ "$CUR" != "$DNS" ] && DEC="changed"; H=$(date '+\%H' | tr -d '\\ '); M=$(date '+\%M' | tr -d '\\ '); [ "$DEC" = "none" ] && [ $(( 10#${H:-0} % 6 )) -eq 0 ] && [ $(( 10#${M:-0} )) -lt 5 ] && DEC="forced"; if [ "$DEC" = "none" ]; then echo "$(date '+\%Y-\%m-\%d \%T') [Decision: none] Host: $HOST | DNS IP: $DNS | Current IP: $CUR" >> "$LOG"; else if curl -fsS "https://update.dedyn.io/?hostname=$HOST&ttl=$TTL" -u "$HOST:$TOKEN" 2>> "$ERR" > /dev/null; then echo "$(date '+\%Y-\%m-\%d \%T') [Decision: $DEC] Host: $HOST | DNS IP: $DNS | Current IP: $CUR | TTL: $TTL" >> "$LOG"; else echo "$(date '+\%Y-\%m-\%d \%T') [ERROR] deSEC update call failed for $HOST" >> "$ERR"; fi; fi; fi 5 * * * * a day ago Run now Edit Disable
7. FreeMyIP update DOMAIN="totolab.dedyn.io"; SUB="*"; TTL="3600"; TOKEN="viYBjKFZwaBwd5GFGSz9ZToTxyPm"; LOG="/var/log/desec_update.log"; ERR="/var/log/desec_err.log"; HOST="${SUB:+$SUB.}${DOMAIN}"; CUR=$(curl -fsS https://checkip.dedyn.io 2>> "$ERR"); if [ -z "$CUR" ]; then echo "$(date '+\%Y-\%m-\%d \%T') [ERROR] Failed to fetch WAN IP" >> "$ERR"; else OLD=$(cat /tmp/desec_ip 2>/dev/null || echo "NONE"); DEC="none"; [ "$CUR" != "$OLD" ] && DEC="changed"; [ "$DEC" = "none" ] && { [ -n "$(find /tmp/desec_ip -mmin +360 2>/dev/null)" ] || [ "$OLD" = "NONE" ]; } && DEC="forced"; if [ "$DEC" = "none" ]; then echo "$(date '+\%Y-\%m-\%d \%T') [Decision: none] Host: $HOST | Prior IP: $OLD | Current IP: $CUR" >> "$LOG"; else if curl -fsS "https://update.dedyn.io/?hostname=$HOST&ttl=$TTL" -u "$HOST:$TOKEN" 2>> "$ERR" > /dev/null; then echo "$(date '+\%Y-\%m-\%d \%T') [Decision: $DEC] Host: $HOST | Prior IP: $OLD | Current IP: $CUR | TTL: $TTL" >> "$LOG" && echo "$CUR" > /tmp/desec_ip; else echo "$(date '+\%Y-\%m-\%d \%T') [ERROR] deSEC update call failed for $HOST" >> "$ERR"; fi; fi; fi 5 * * * * a day ago Run now Edit Disable
8. test ls -hl */2 * * * * 2 years ago Enable