Difference between revisions of "Webmin, Linode, Letsencrypt, Cloudflare, Godaddy"
Jump to navigation
Jump to search
(Created page with "<syntaxhighlight lang="shell" line="1"> { crontab -l; echo "0 0 * * * shutdown -r now"; } | crontab - sudo crontab -e chattr -i /etc/crontab lsattr /etc/crontab -l CRON JOBS...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<syntaxhighlight lang="shell" line="1"> | <syntaxhighlight lang="shell" line="1"> | ||
− | { crontab -l; echo "0 0 * * * shutdown -r | + | { crontab -l; echo "@daily /usr/bin/certbot renew >> /var/log/le-renew.log"; } | crontab - |
+ | { crontab -l; echo "0 1 * * * yum -y update"; } | crontab - | ||
+ | { crontab -l; echo "0 2 * * * /sbin/shutdown -r +5"; } | crontab - | ||
sudo crontab -e | sudo crontab -e | ||
chattr -i /etc/crontab | chattr -i /etc/crontab |
Latest revision as of 17:14, 9 February 2022
{ crontab -l; echo "@daily /usr/bin/certbot renew >> /var/log/le-renew.log"; } | crontab -
{ crontab -l; echo "0 1 * * * yum -y update"; } | crontab -
{ crontab -l; echo "0 2 * * * /sbin/shutdown -r +5"; } | crontab -
sudo crontab -e
chattr -i /etc/crontab
lsattr /etc/crontab -l
CRON JOBS
sudo crontab -e
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
@daily /etc/webmin/mysql/backup.pl --all
@daily /usr/bin/certbot renew >> /var/log/le-renew.log
@daily /etc/webmin/postgresql/backup.pl --all
0 */5 * * * /home/rhoportal/others/shell/cloud_backup_script.sh
0 1 * * * yum -y update
0 2 * * * /sbin/shutdown -r +5
service crond restart
tail -f /var/log/cron
grep "cloud_backup_script.sh" /var/log/cron
grep "cert" /var/log/cron
grep "reload_iptables.sh" /var/log/cron