Browse Source

clear logs script ๐Ÿ“„

windhamdavid 1 year ago
parent
commit
7c77438de8
3 changed files with 16 additions and 5 deletions
  1. 10 4
      docs/computers/woozie.md
  2. 6 0
      docs/computers/zeke.md
  3. 0 1
      src/pages/todo.md

+ 10 - 4
docs/computers/woozie.md

@@ -6,19 +6,25 @@
 
 ## Log
 
+**23.06.26** - added cron to clear logs weekly ( sun @5:50am )
+```bash
+sudo crontab -e 
+50 5 * * 0 /home/*****/scripts/clear_logs.sh
+```
+
 **23.02.04** - Init
 
 ### Todo
 
 - Monitor
-  - watch logs for bots/IPs & block
+  - ~~watch logs for bots/IPs & block~~
   - ~~conf awk for cron to show virtual hosts~~
   - ~~combine A records for subdomains.~~
   - [lifeasweknowit.com](http://lifeasweknowit.com) is still pointed to the IP
 - Tune
-  - apache/nginx
-  - mariadb
-  - postgreSQL
+  - ~~apache/nginx~~
+  - ~~mariadb~~
+  - ~~postgreSQL~~
 - ~~custom apache/nginx error pages~~
 - ~~code.daw~~
   - ~~email settings for code.daw~~

+ 6 - 0
docs/computers/zeke.md

@@ -2,6 +2,12 @@
 
 ## Log
 
+**23.06.26** - added cron to clear logs weekly ( sun @5:50am )
+```bash
+sudo crontab -e 
+50 5 * * 0 /home/*****/scripts/clear_logs.sh
+```
+
 **23.03.17** - Inline upgrade 18.04.6 LTS -> 20.04.5 LTS
 ```bash
 # make a snapshot backup

+ 0 - 1
src/pages/todo.md

@@ -42,7 +42,6 @@
     - Rebuild design features as blocks
   - IRAs consult/move
   - [Woozie](/docs/computers/woozie) / [Zeke](/docs/computers/zeke)
-    - Clear Logs & Autorotation
     - Zeke - Ubuntu to 22.04 LTS
     - Cache policies
     - Woozie - Auto Remove old analytics logs