BrianHenryIE / UnmountVolumeAfterTimeMachine

Automatically eject USB drives after TimeMachine backup finishes
MIT License
11 stars 0 forks source link
backup-utility time-machine

Unmount Volume After Time Machine

Automatically eject USB disks after Time Machine backup completes.

Launches when a USB disk is inserted and exits after Time Machine completes.

To avoid:

disk-not-ejected-properly.png

Quickly install via yonaskolb/MintA package manager that installs and runs Swift command line tool packages.

brew install mint
mint run BrianHenryIE/UnmountVolumeAfterTimeMachine

Background Items Added.png

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