일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- git pull
- Liniux
- SSL
- wordpress
- home page
- MariaDB
- launch.json
- php
- Mac
- centos
- mysql
- Linux
- Xdebug
- 구글 클라우드
- Google Cloud
- non-www
- vscode
- html
- front page
- https
- Certbot
- root
- new user
- Apache
- CentOS7
- crontab
- DOM Parser
- Fail2ban
- child theme
- LetsEncrypt
- Today
- Total
목록crontab (2)
between 0 and 1
To renew ssl automatically, We can use crontab. Step 1. enter crontab edit mode $ sudo crontab -e Step 2. certbot auto-renewal script ## certbot 30 4 * * 0 certbot renew >> /home/log/certbot/cert_$(date +\%Y\%m\%d).log above script will be executed 4:30 AM on every Sunday. and the execution log will be stored in the "/home/log/certbot/" folder.
리눅스 반복 예약 작업인 crontab 을 이용하다 보면,요일 마다 반복되는 작업을 걸고 싶을 때가 있다. (서버 재부팅 주기를 설정한다거나...... 백업을 주기적으로 실행한다거나...... ) 할 때 마다 헷갈려서 정리해 놓으려고 한다. crontab 관련된 파일 및 경로들은 아래와 같다 /etc/crontab/etc/cron.d//etc/cron.daily//etc/cron.hourly//etc/cron.monthly//etc/cron.weekly//var/spool/cron/ 위의 경로중 마지막 /var/spool/cron/ 디렉토리에 보면 최종적으로 사용자별 crontab 설정들이 있다.위 경로들을 에디터로 열어서 직접 수정을 해주어도 되고, 간단하게 아래의 명령로도 최종 수정본을 접속하여 수정..