A collection of automation scripts for Linux server administration and DevOps tasks. Built with Bash scripting on Ubuntu Linux.
0xApana — DevOps Engineer in training
Automatically backs up important data to a backup directory.
What it does:
- Defines source and destination directories
- Creates backup folder automatically
- Copies all files recursively
- Displays success message with timestamp
How to run:
chmod +x backup/backup.sh
./backup/backup.shDisplays a full server health report.
What it does:
- Shows current user and hostname
- Displays current date and time
- Shows CPU information
- Displays memory usage (total, used, free)
- Shows disk usage
- Counts running processes
How to run:
chmod +x monitoring/sysinfo.sh
./monitoring/sysinfo.shAutomates bulk user creation on Linux systems.
What it does:
- Creates multiple users at once using arrays and loops
- Displays confirmation for each user created
- Prints success message when complete
How to run:
chmod +x user-management/createusers.sh
./user-management/createusers.shAutomates fresh server configuration.
What it does:
- Updates and upgrades system packages
- Installs essential tools (curl, wget, git, vim, htop, net-tools, nginx)
- Creates a deploy user with sudo access
- Creates important directories (/var/log/myapp, /var/www/html, /backup, /scripts)
- Sets correct permissions on directories
- Prints setup completion message
How to run:
chmod +x server-setup/setup.sh
./server-setup/setup.shrees up disk space by cleaning unnecessary files.
What it does:
- Shows disk space before cleanup
- Cleans apt package cache
- Removes unnecessary packages
- Vacuums old system logs (older than 7 days)
- Shows disk space after cleanup
- Prints completion message
How to run:
chmod +x cleanup/cleanup.sh
./cleanup/cleanup.shdevops-toolkit/
├── README.md
├── backup/
│ └── backup.sh
├── monitoring/
│ └── sysinfo.sh
├── user-management/
│ └── createusers.sh
├── server-setup/
│ └── setup.sh
└── cleanup/
└── cleanup.sh