Simplify macOS Time Machine Cleanup with the Interactive tm-cleanup.sh Script
This article introduces tm-cleanup.sh, a shell script that automates Time Machine backup removal on macOS, now featuring an interactive, dialog‑based interface that lets users browse and delete snapshots without needing command‑line expertise.
About two years ago I created a shell script called tm-cleanup.sh to automate the cleanup of macOS Time Machine backups, handling timestamps and other details. The script proved very useful and saved a lot of time.
Because some non‑technical users encountered difficulties running the script from the CLI, I added an interactive, dialog‑based interface to make the process visual and user‑friendly.
The new version 2.0 can be launched simply with the following command: $ sudo tm-cleanup.sh The script takes no arguments. The interactive menu displays a list of existing Time Machine snapshots, allowing users to select and delete individual backups.
Below is a screenshot of the backup list interface:
For more details and documentation, visit the GitHub repository at https://github.com/emcrisostomo/Time-Machine-Cleanup .
Author: Enrico Maria Crisostomo Translator: 21CTO Community Original article: https://dzone.com/articles/tm-cleanupsh-a-shell-script-now-featuring-an-inter
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
21CTO
21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
