Skip to content

0xApana/devops-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Toolkit 🛠️

A collection of automation scripts for Linux server administration and DevOps tasks. Built with Bash scripting on Ubuntu Linux.

Author

0xApana — DevOps Engineer in training


Scripts Included

1. 🔒 Backup Script (backup/backup.sh)

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.sh

2. 📊 System Monitor (monitoring/sysinfo.sh)

Displays 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.sh

3. 👥 User Management (user-management/createusers.sh)

Automates 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.sh

4. 🖥️ Server Setup (server-setup/setup.sh)

Automates 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.sh

5. 🧹 Cleanup Script (cleanup/cleanup.sh)

rees 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.sh

Project Structure

devops-toolkit/
├── README.md
├── backup/
│   └── backup.sh
├── monitoring/
│   └── sysinfo.sh
├── user-management/
│   └── createusers.sh
├── server-setup/
│   └── setup.sh
└── cleanup/
    └── cleanup.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages