Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
knowledge_base:software_setup:dyndns_he [2020/11/08 13:28] – ↷ Seite von knowledge_base:software:dyndns_he nach knowledge_base:software_setup:dyndns_he verschoben julian.lemmerich | knowledge_base:software_setup:dyndns_he [2023/12/13 20:24] (aktuell) – [Linux Server Regular updating] - shorten crontab to most interesting julian.lemmerich | ||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
===== Linux Server Regular updating ===== | ===== Linux Server Regular updating ===== | ||
+ | |||
+ | In this example the Domain is '' | ||
<code bash> | <code bash> | ||
- | curl -6 " | + | curl -6 " |
- | curl -4 " | + | curl -4 " |
</ | </ | ||
- | <file bash crontab -e> | + | This is an example of how to implement it with cron. |
- | # Edit this file to introduce tasks to be run by cron. | + | |
- | # | + | |
- | # Each task to run has to be defined through a single line | + | |
- | # indicating with different fields when the task will be run | + | |
- | # and what command to run for the task | + | |
- | # | + | |
- | # To define the time you can provide concrete values for | + | |
- | # minute (m), hour (h), day of month (dom), month (mon), | + | |
- | # and day of week (dow) or use ' | + | |
- | # Notice that tasks will be started based on the cron's system | + | |
- | # daemon' | + | |
- | # | + | |
- | # Output of the crontab jobs (including errors) | + | |
- | # email to the user the crontab file belongs to (unless redirected). | + | |
- | # | + | |
- | # For example, you can run a backup | + | |
- | # at 5 a.m every week with: | + | |
- | # 0 5 * * 1 tar -zcf / | + | |
- | # | + | |
- | # For more information see the manual pages of crontab(5) and cron(8) | + | |
- | # | + | |
- | # m h dom mon dow | + | |
- | MAILTO = "" | + | <file bash crontab -e> |
# DynDNS Update every 5 minutes | # DynDNS Update every 5 minutes | ||
- | */5 * * * * curl -6 " | + | */5 * * * * curl -6 " |
- | */5 * * * * curl -4 " | + | */5 * * * * curl -4 " |
</ | </ | ||