macOS-snapcleaner/README.md
2025-09-24 17:18:27 +02:00

46 lines
1.1 KiB
Markdown

# auto-snapclean-listener
A small macOS utility script that automatically deletes all local Time Machine snapshots once they are created.
It is useful for users who do not want macOS to keep local snapshots and prefer to rely only on external Time Machine backups.
⚠️ Tested on **macOS Tahoe**. Other versions may work, but are not guaranteed.
---
## Features
- Listens for local Time Machine snapshot creation events.
- Waits until the backup process is finished (avoids conflicts).
- Automatically deletes all local snapshots afterwards.
- Lightweight: no constant polling, event-driven.
---
## Installation
Clone the repository:
```bash
git clone https://git.lahmico.de/Pipo/snapcleaner.git
cd auto-snapclean-listener
```
Make the script executable:
```bash
chmod +x auto-snapclean-listener.sh
```
Install the LaunchDaemon:
```bash
sudo cp auto-snapclean-listener.plist /Library/LaunchDaemons/
sudo launchctl load /Library/LaunchDaemons/auto-snapclean-listener.plist
```
Uninstall (if needed):
```bash
sudo launchctl unload /Library/LaunchDaemons/auto-snapclean-listener.plist
sudo rm /Library/LaunchDaemons/auto-snapclean-listener.plist
```