A handy command-line tool to back up and restore Linux system configurations, clean up unnecessary files, and schedule automatic maintenance at system startup. BRCS is an acronym for Backup, Restoration, Cleaner and Schedule.
- 💾 Backup configuration files (
.conf,.ini,.rules, etc.) - 🔁 Restore interactively or in bulk
- 🧹 Clean package cache, orphaned packages, Snap, Flatpak, and Steam leftovers
- ⏰ Schedule cleanup automatically at boot
- 📊 Terminal-based progress bar for all operations
- Simple, intuitive terminal menu interface
bashzipunziplocatedeborphan(optional but recommended)localepurge(optional)flatpak(optional)snapd(optional)
sudo apt install zip unzip locate deborphan localepurge flatpak snapd
-
Download the file:
-
Make the script executable:
chmod +x BRCS.sh -
Run it:
./BRCS.sh -
Follow the interactive menu.
🛠️ System Maintenance Menu
1️⃣ Backup configurations
2️⃣ Restore configurations
3️⃣ Full system cleanup
4️⃣ Schedule cleanup at boot
5️⃣ Exit
Backup files are saved in the format: hostname.confs.YYYYMMDD.zip
Logs are saved to ~/backup_YYYYMMDD.log
| Component | Details |
|---|---|
| Model | Lenovo IdeaPad S145-15IWL |
| Memory | 8 GiB |
| Processor | Intel® Core™ i7-8565U CPU @ 1.80GHz × 8 |
| Graphics | Mesa Intel® UHD Graphics 620 (WHL GT2) |
| Disk Capacity | 120 GB |
| OS | Zorin OS 17.3 Core (64-bit) |
| Window System | Wayland |
🧪 This utility has been tested and works well with the setup above.
This project is licensed under the terms of the GNU General Public License v3.0.
To run the test suite you need the Bats framework.
Install it via your package manager (e.g. sudo apt install bats) and then execute:
bats test