Does ejecting an external disk during a TM Backup result in a bad backup?

This question is actually multi-part.


My wife and many of my clients will unplug their Time Machine external drive when it is connected to their laptop and just walk away. Inevitably they get the dreaded (or not so dreaded "Disk not ejected properly" message.


I recommend to everyone (and also follow the practice) of ejecting my external disks before unplugging my MBP. In addition I check to ensure there that if there is a current TM backup running I either let it finish or cancel it.


I am confident the wife and my clients don't do this.


So my first question is how likely will doing this corrupt a TM backup? Sure the answer is who knows. I get paranoid and if this happens to me I try to erase the TM backup and create a fresh one.


[As far as I know, there is no way to check the integrity of TM backups, right?].


Is there some menu bar item / application that will eject your disks, making it safe to disconnect, BUT before doing so it will detect if a Time Machine backup is running or not, and warn you. It could tell you "Time Machine is backing up to the External Drive <External Drive>


It is x percent done.


Cancel Eject

Ignore

"

or something along those lines.


I would use this, and I would make my wife use it, and recommend it to my clients.


I am using "Mountain" to eject volumes, but it doesn't seem to have this feature. Might suggest it to them.


Bryan



Posted on Apr 12, 2023 11:28 AM

Reply
9 replies

Apr 19, 2023 6:15 AM in response to Bryan Schmiedeler

If you’re particularly concerned about this, get a NAS with Time Machine support and teach the users to shut down the Mac before they leave the Wi-Fi network with their equipment. This reduces the opportunities to yank cables.


With direct-attached storage, teach them to shut down before they disconnect cables.


Or disable automatic backups, and teach the folks to request a manual backup and to leave it running and leave it cabled until completion: Start, pause, or resume a Time Machine backup on Mac - Apple Support


Your fundamental issue is people, and there is no technical solution to a people problem. Yanking cables mid-backup or mid-anything-actively-transferring is bad.


I am not aware of any app which takes additional control of macOS and Time Machine.


Or disable backups entirely, as nobody here cares a whit about their data, and that’s not your issue. Nor is fixing the results.


If you should decide to continue in your current role here, welcome to IT. This is one of the ongoing sources of tension and conflict when IT is supporting users. Some users will routinely derail backups, but it’s IT’s problem to fix problems when data goes missing or dropped or dunked or corrupted.

Apr 19, 2023 7:45 AM in response to Bryan Schmiedeler

I usually suggest shutdown, as it’s simpler. And it cleans up other messes, too. Various apps (and macOS itself, in some cases) have too often had resource leaks.


Yes, TM should clean up from a clean dismount, but TM should be stopped first, and then the dismount.


I haven’t met a TM corruption on a clean dismount or a clean shutdown.


I have met TM corruptions on yanked cables, and on power outages.


NAS beats DAS around forgetting, and around yanking, and around sharing a storage pool or two.


I don’t generally prefer AppleScript, as it too has too often fallen short of local needs and expectations.


You should see a backupd process active when TM is active, if you want to script this with AppleScript or zsh or bash or some Swift app. The app will need system access sufficient to spot the active backupd, obviously.

Apr 19, 2023 5:54 AM in response to dialabrain

These two answers are helpful but I don't think they address my fundamental issue.


I know all this and do it. I will check if Time Machine 2 minutes to finish or 20 minutes to finish. If it is 2 minutes I wait, if it is 20 I stop the TM backup.


Then I eject the disks. Then I unplug them.


My wife is not going to do this. Many people I help with Macs are not going to do this.


Could I write an "Safely Eject External Drives" menu bar applet that would do the following:


Check to see if a Time Machine Backup is running or not.


If not, eject all disks, notify the user.

If it is then, notify the user, and...

Display to the user which external drive is using Time Machine to back up and estimate of how long to finish

Display to the user how much time (or how much space is left to finish)

Give the user the choice to

Cancel the ejection and dismiss the dialog box

Stop TimeMachine backup and eject the drive

Continue ejection


Would this be useful?


Bryan


Apr 19, 2023 7:29 AM in response to MrHoffman

Actually, I am a programmer and do understand about the people issue. Generally agree with you, users have to take responsibility for not doing things like pulling a cable out of an external disk without ejecting the disk. Sometimes it's nice to help them out a bit.


Just to confirm, if there is a Time Machine backup in progress and the user tries to eject the disk, the OS will safely stop the TM backup and then eject the disk? Then that is great and I can just tell users to do this. But if it doesn't I am pretty sure they are going to just saw the heck with it and pull the cable.


I still think a little program/AppleScript whatever that just did this all for them would be handy. You tell the user to click this thing in the doc when they want to unplug their external dive. They wait until it says it is OK to do so, and that is it.


Bryan

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Does ejecting an external disk during a TM Backup result in a bad backup?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.