The 30 bash scripts I actually run on every server I manage
$9 — instant download — MIT license
These aren't tutorials. These are the scripts I SSH in and copy to /opt/scripts on every new server before I do anything else. Disk monitoring that fires before the outage. A backup pipeline that handles retention automatically. SSL expiry checks that run daily at 8am. Service watchdogs that restart things before users notice.
Every script follows the same format: set -euo pipefail, named variables for every threshold, comments explaining WHY each line exists. Copy-paste ready. No setup, no configuration wizards, no install scripts.
What's included
- 10 monitoring scripts (disk, CPU, RAM, website uptime, SSL expiry, service health)
- 8 backup automation scripts (files, databases, rsync offsite)
- 5 security audit scripts (port inventory, permissions, SSH hardening)
- 4 DevOps utility scripts (Docker cleanup, log rotation, process management)
- 3 bash scripting templates (error handling, retry logic, trap patterns)
Plus: the production-ready bash script template file I start every new script from.
Instant download · MIT License · No subscription
Already have scripts — need somewhere to run them? DigitalOcean droplets from $4/mo.
Get $200 free credit — DigitalOcean
Get $200 Free →Affiliate link · we earn a commission