Week 10a: Bash Scripting for Security & GPG Automation

Goal Learn bash scripting fundamentals tailored for security workflows and master automating GPG encryption operations in scripts. Prerequisites: Weeks 1-9 (encryption, GPG, system administration) This is Part 1 of 2 - Covers scripting fundamentals and GPG automation. 1. Why Automate Security Workflows? The Problem: Manual Tasks Get Skipped Security fatigue is real: Manual backups → forgotten until disaster strikes Key rotation → procrastinated indefinitely Log reviews → “I’ll do it tomorrow” (never happens) Security updates → Delayed due to inconvenience Result: Security degrades over time ...

Week 10b: Cron Scheduling & Security Maintenance Automation

Goal Master cron scheduling for security automation, build security maintenance scripts, and create a complete automated security workflow suite. Prerequisites: Week 10a (Bash Scripting & GPG Automation) This is Part 2 of 2 - Covers scheduling and complete automation workflows. 1. Cron Jobs for Automation Understanding Cron Syntax # ┌───────────── minute (0-59) # │ ┌─────────── hour (0-23) # │ │ ┌───────── day of month (1-31) # │ │ │ ┌─────── month (1-12) # │ │ │ │ ┌───── day of week (0-7, Sunday = 0 or 7) # │ │ │ │ │ # * * * * * command to execute Examples: ...