Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 900 Bytes

File metadata and controls

53 lines (31 loc) · 900 Bytes

Bash DevOps Scripts

A collection of simple Bash scripts for basic system administration and automation tasks.

Scripts included

backup.sh

Creates a compressed archive of a specified directory and writes a log entry.

Features:

  • directory backup using tar
  • timestamped archive names
  • logging to file

disk_check.sh

Checks disk usage and warns if it exceeds a defined threshold.

Features:

  • monitors disk usage percentage
  • customizable threshold
  • suitable for automation (cron)

system_report.sh

Displays basic system information.

Features:

  • CPU usage
  • RAM usage
  • system uptime
  • log_cleaner.sh

Requirements

  • Linux system
  • Bash
  • Standard utilities: tar, df, awk, tr, free, uptime, find

Usage

Make scripts executable:

  • chmod +x *.sh

Run any script:

  • ./script_name.sh