-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Automatically unmount volume when Time Machine is done making a backup #19
Comments
Thanks for the suggestion 👍. |
This would be really great! |
I was working on this today and have it working in principle. I'm reading the output of
let logParserPattern = #"""
(?<timestamp>\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{6}-\d{4})
\s+
(?<thread>0x\w+)
\s+
(?<type>\w+)
\s+
(?<activity>0x\w+)
\s+
(?<pid>\d+)
\s+
(?<ttl>\d+)
\s+
(?<context>.*?)
\s
\[(?<namespace>.*?):(?<namespacecontext>.*?)\]
\s+
(?<message>.*)
"""# I'm still figuring out how to handle "Cleaning Up..." ("thinning") which happens after the
This doesn't seem to have an explicit "complete" log message but is usually followed by:
but that message is also sometimes logged during cleanup. So I think I'm going to use
If anyone knows a real API I should be using for this (instead of parsing text logs and calling shell commands!) let me know. I'll take another look at this soon and make a PR. |
Maybe you could have a look at how this tool is doing it: https://github.com/ProsoftEngineering/TimeMachineRemoteStatus |
Using This allow to check if a backup was made recently and unmnunt the disk if that the case and no backup are running. To start the backup right after the disk is mounted ejectify could mount the disk every X hours and unmount the disk when the backup is done. The settings could be like "Time Machine Backup" -> "every 1 hours", "every 6 hours", "every 12 hours", "every day" |
I'm closing this issue as I consider it out-of-scope for Ejectify. I would recommend reaching out to the developer behind TimeMachineEditor and asking if he could add a mechanism to automatically unmount the volume when Time Machine is done making a backup. |
I've been working on this more recently: BrianHenryIE/UnmountVolumeAfterTimeMachine |
Time Machine disk is often a hard drive and when not backing up, it tends to make Finder lag when opening a new window if the disk was asleep. A useful option to solve this issue would be to auto-unmount the Time Machine disk while not used by the
backupd
task. And auto-mount it when needed (every hour, maybe this could be customisable in the utility).The text was updated successfully, but these errors were encountered: