Automatically eject USB disks after Time Machine backup completes.
Launches when a USB disk is inserted and exits after Time Machine completes.
To avoid:
Quickly install via yonaskolb/Mint – A package manager that installs and runs Swift command line tool packages.
brew install mint
mint run BrianHenryIE/UnmountVolumeAfterTimeMachine
mint uninstall BrianHenryIE/UnmountVolumeAfterTimeMachine
Originally requested as a feature for nielsmouthaan/ejectify-macos but not implemented in that now-archived project.
Uses BrianHenryIE/SwiftTimeMachine and BrianHenryIE/BHSwiftOSLogStream to parse Time Machine logs and query tmutil
for status. When the backup job completes, the disk is ejected with DADiskUnmount
.
TODO:
Build and run
swift build -c release
./.build/release/UnmountVolumeAfterTimeMachine