Skip to content

Releases

Release v2.1.0 🚀 - Docker Engine, Cacti Monitoring, Auto-Release & ZIP Download Bundle

Choose a tag to compare

@github-actions github-actions released this 22 Nov 06:32

🧹 System Cleanup & Space Optimization Script - v2.1.0

Production-grade, automated Linux (Ubuntu / Debian), Proxmox VE, Docker Engine, and Cacti Network Monitoring disk cleanup tools.


🌟 What's New in v2.1.0

  • 🐳 Zero-Downtime Docker Optimization (\docker/Docker_log.sh):
    • Safely truncates container JSON logs (*-json.log) to \�\ bytes while containers are actively running without stopping them.
    • Prunes dangling untagged images, stopped containers, and build cache.
    • Strictly preserves all persistent Docker volumes.
  • 🌵 Cacti & Spine Log Optimization (\cacti/cacti_log.sh):
    • Auto-detects standard Cacti directories (/var/log/cacti/, /var/www/html/cacti/log/, etc.) and Spine poller logs.
    • Truncates \cacti.log\ and \spine.log\ while strictly keeping file ownership and permissions intact.
    • Deletes rotated .gz\ and numeric archives.
    • 100% RRA / Graph Safety: All .rrd\ metric files and
      ra/\ directories are strictly preserved.
    • Multi-service cleaner \ubuntu/cleaning.sh\ also updated to include Cacti logs.
  • 📦 Pre-Packaged Download Bundles:
    • Attached pre-packaged .zip\ and .tar.gz\ archives with executable permissions pre-configured on all shell scripts.
    • Instant direct download links added to README and Web Portal.
  • 🤖 Automated Continuous Delivery (GitHub Actions):
    • Added auto-release workflow with semantic versioning tag calculation on push to \main.
  • 🌐 Web Portal Parity:
    • Added Cacti and Docker tabs to the interactive terminal emulator.
    • Updated 4-way side-by-side feature matrix.

📦 Download Assets


⚡ Quick One-Liner Execution

\\�ash

Ubuntu / Debian (Recommended)

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/main/ubuntu/log_cleanup.sh | sudo bash

Proxmox VE (Storage Safe)

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/main/proxmox/proxmox-cleanup.sh | bash

Docker Engine (Zero Downtime)

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/main/docker/Docker_log.sh | sudo bash

Cacti Monitoring (.rrd Safe)

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/main/cacti/cacti_log.sh | sudo bash
\\


Full Changelog: V.2.0...v2.1.0

V.2.0 - Major Architecture Overhaul: Web Portal, Modular Folders & Zero-CRLF 🌐

Choose a tag to compare

@sohag1192 sohag1192 released this 03 Nov 07:08

🧹 System Cleanup & Space Optimization Script - V.2.0

A major architecture and usability upgrade featuring a modern web portal, modular directory structure, automated cron management, and Windows CRLF encoding fixes.


🚀 What's New in V.2.0

  • 📁 Modular Directory Reorganization:
    Organized all shell scripts into dedicated, logical folders:
    • \ubuntu/\ – Ubuntu & Debian cleanup scripts (\log_cleanup.sh, \cleaning.sh, \clean_up.sh, etc.)
    • \proxmox/\ – Proxmox VE storage-safe cleanup scripts (\proxmox-cleanup.sh, \proxmox_clean.sh)
  • 🌐 Modern GitHub Pages Web Portal (\index.html):
    Launched an interactive web dashboard hosted at sohag1192.github.io/System-Cleanup-Script:
    • Interactive bash terminal emulator with one-click copy buttons
    • Real-time Crontab Line Generator
    • Full bilingual support (English & Bengali)
    • Comprehensive feature matrix comparison
  • ⚡ One-Liner Cron Setup & Management:
    Automate daily or weekly cleanup with one-liner commands without opening a text editor, plus quick removal via \sed:
    \\�ash

    Daily at 3:00 AM (Ubuntu)

    (sudo crontab -l 2>/dev/null | grep -v "log_cleanup.sh"; echo "0 3 * * * /root/log_cleanup.sh >> /var/log/cleanup_cron.log 2>&1") | sudo crontab -
    \\
  • 🔧 Windows CRLF Line Ending Fix:
    Enforced Unix LF line endings across all shell scripts via .gitattributes\ to permanently prevent $'\r': command not found\ errors.
  • 💻 Windows Auto-Commit Script (\upload.bat):
    Added batch tool for streamlined git staging, committing, and pushing from Windows environments.
  • 📄 MIT License Added:
    Formally released under the permissive MIT Open Source License.

⚡ Quick One-Liner Execution

\\�ash

Ubuntu / Debian

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/V.2.0/ubuntu/log_cleanup.sh | sudo bash

Proxmox VE

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/V.2.0/proxmox/proxmox-cleanup.sh | bash
\\


Full Changelog: V.1.0...V.2.0

V.1.0 - Initial Release: Production Linux & Proxmox Cleanup Scripts 🚀

Choose a tag to compare

@sohag1192 sohag1192 released this 03 Nov 06:38
2f9c501

🧹 System Cleanup & Space Optimization Script - V.1.0 (Initial Release)

Production-grade, automated Linux (Ubuntu / Debian) and Proxmox VE disk cleanup and log optimization tools.


✨ Highlights & Key Features

  • 🛡️ Zero-Downtime Safe Log Truncation:
    Safely truncates active service and system logs to \�\ bytes (\ runcate -s 0) without deleting files. Active service file descriptors are preserved, preventing daemon crashes.
  • 📦 Proxmox VE Storage Safe:
    Clean host systemd journals and rotated logs while strictly isolating and protecting VM / container backups (/var/lib/vz/dump/), CT templates (/var/lib/vz/template/cache/), and ISO images (/var/lib/vz/template/iso/).
  • 🧹 Systemd Journal Vacuuming:
    Vacuums archive journal logs older than 7 days (\journalctl --vacuum-time=7d) to instantly reclaim gigabytes of system storage.
  • 🐧 Ubuntu & Debian Multi-Service Support:
    Dedicated log cleanup routines for Nginx, Apache2, Flussonic, and MySQL/MariaDB.
  • 📦 APT Cache & Orphan Package Cleanup:
    Runs \�pt-get clean, \�utoclean, \�utoremove -y, and removes orphaned libraries via \deborphan.
  • 🗑️ User & Root Trash Cleanup:
    Removes stale files from ~/.local/share/Trash.
  • 📊 Disk Usage Feedback:
    Displays a before-and-after disk usage report (\df -h /).

📂 Included Scripts

  • \log_cleanup.sh\ – Advanced Ubuntu log cleaner with journal vacuuming and disk usage reporting.
  • \cleaning.sh\ – Multi-service cleaner (Nginx, Apache, MySQL, Flussonic, Trash & APT).
  • \clean_up.sh\ / \clean-logs.sh\ / \clean_logs.sh\ – General log cleanup with Nginx RTMP support.
  • \proxmox-cleanup.sh\ – Storage-safe Proxmox VE log and cache cleaner.
  • \proxmox_clean.sh\ – Lightweight Proxmox cleanup script.

⚡ Quick One-Liner Execution

\\�ash

Ubuntu / Debian

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/V.1.0/log_cleanup.sh | sudo bash

Proxmox VE

curl -sSL https://raw.githubusercontent.com/sohag1192/System-Cleanup-Script/V.1.0/proxmox-cleanup.sh | bash
\\


Full Changelog: https://github.com/sohag1192/System-Cleanup-Script/commits/V.1.0