Skip to content

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

Choose a tag to compare

@sohag1192 sohag1192 released this 03 Nov 06:38
· 14 commits to main since this release
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