All(29) System Maintenance(4) Backup(4) Monitoring(4) Security(4) Networking(4) User Management(3) Docker(3) DevOps(3)
Showing 29 of 29 scripts
System Update Script System Maintenance Performs a full system update on Debian/Ubuntu or RHEL/CentOS systems, including package cache refresh, upgrades, and optional reboot.
Cleanup Old Logs System Maintenance Finds and removes log files older than a configurable number of days from specified directories. Supports dry-run mode.
Disk Space Monitor System Maintenance Monitors disk usage on all mounted filesystems and sends an email alert when usage exceeds a configurable threshold.
Memory Usage Alert System Maintenance Checks current memory and swap usage, alerting when consumption exceeds configurable thresholds. Includes top memory-consuming processes.
Backup Directory with Timestamp Backup Creates a compressed tar archive of a directory with a timestamp in the filename. Supports retention-based cleanup of old backups.
MySQL / PostgreSQL Dump Backup Dumps a MySQL or PostgreSQL database to a compressed file with timestamp. Supports all databases or a specific one.
Rsync Mirror Backup Mirrors a local or remote directory using rsync with bandwidth limiting, exclude patterns, and optional SSH key authentication.
Rotate Backups (Grandfather-Father-Son) Backup Implements a GFS (Grandfather-Father-Son) backup rotation strategy, keeping daily, weekly, and monthly backups with configurable retention.
Service Watchdog (Restart If Down) Monitoring Checks if a systemd service is running and restarts it if stopped. Logs events and sends email notifications on failures.
Port Monitor Monitoring Monitors specified TCP ports on local or remote hosts and alerts when a port becomes unreachable.
CPU / Memory Usage Logger Monitoring Logs CPU and memory usage at regular intervals to a CSV file for historical analysis and trend monitoring.
Website Uptime Checker Monitoring Checks HTTP status codes and response times for a list of URLs. Alerts on non-200 responses or slow page loads.
Fail2ban Log Parser Security Parses fail2ban logs to show ban/unban statistics, top offending IPs, and most targeted jails.
Unauthorized SSH Access Checker Security Scans auth logs for failed SSH login attempts, identifies brute-force patterns, and optionally blocks offending IPs.
File Integrity Checker Security Computes SHA-256 checksums for files in specified directories and compares against a stored baseline to detect unauthorized changes.
SSL Certificate Expiry Checker Security Checks SSL certificate expiration dates for a list of domains and alerts when certificates are nearing expiry.
Connectivity Tester Networking Tests network connectivity to multiple hosts using ping, DNS resolution, and optional HTTP checks.
DNS Lookup Batch Networking Performs batch DNS lookups for multiple domains, showing A, AAAA, MX, NS, and TXT records in a formatted report.
Open Ports Scanner Networking Scans a host for open TCP ports using bash built-in /dev/tcp (no external tools needed) or nmap if available.
Bandwidth Monitor Networking Monitors real-time network bandwidth usage per interface, showing RX/TX rates updated every second.
Bulk User Creation User Management Creates multiple Linux users from a CSV file with configurable shell, groups, and home directory settings.
Password Expiry Reminder User Management Checks all local user accounts for upcoming password expiration and sends reminders to users or administrators.
Inactive User Finder User Management Identifies user accounts that have not logged in for a specified number of days and optionally disables them.
Docker Cleanup (Images, Volumes, Networks) Docker Removes unused Docker images, stopped containers, dangling volumes, and unused networks to reclaim disk space.
Docker Health Check for All Containers Docker Checks the health status, resource usage, and restart count of all running Docker containers.
Backup Docker Volumes Docker Backs up Docker named volumes to compressed tar archives using a temporary container mount.
Deploy Script Template DevOps A deployment script template with pre/post hooks, rollback support, health checks, and notification integration.
Blue-Green Deploy Helper DevOps Manages blue-green deployments by toggling between two identical environments with zero-downtime switching via nginx.
Log Rotation Setup DevOps Generates and installs logrotate configuration files for application logs with customizable rotation policies.
What Are Shell Scripts? Shell scripts are plain-text files containing a sequence of Bash commands that automate repetitive tasks. Instead of typing commands one by one, you write them into a .sh file and execute the entire workflow at once.
How to Use This Library Browse scripts by category — backups, monitoring, security, Docker, and more. Each script includes usage instructions and customizable variables. Copy to your clipboard or download the .sh file directly.
Why Use Pre-Built Scripts? Writing reliable shell scripts from scratch takes time, especially for tasks like log rotation, automated backups, or health checks. This library gives you battle-tested starting points so you can focus on customization rather than boilerplate.