Textbar Timemachine

A TextBar script to monitor the status of your Time Machine / Time Capsule backups
Alternatives To Textbar Timemachine
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Rsync Time Backup2,851
8 days ago1March 03, 2021101Shell
Time Machine style backup with rsync.
Backintime1,545
9 days ago209gpl-2.0Python
Back In Time - A simple backup tool for Linux
Asimov1,209
6 days ago1March 03, 202134mitPHP
Automatically exclude development dependencies from Apple Time Machine backups
Acnh Bcats186
a year ago
Animal Crossing New Horizons BCAT Events
Timedog173
2 years ago1February 27, 20188gpl-2.0Python
Displays set of files that were saved in Time Machine backups
Gbm171
a day agogpl-3.0Visual Basic .NET
Game Backup Monitor - Automatically backup your saved games!
Raspberrypi Timemachine161
5 years ago1mit
Apple Time Machine with raspberry Pi
Rsync Time Machine92
3 years ago1gpl-2.0Python
Time Machine Style backup using rsync
Time Machine Sparce Bundle Fix68
9 years ago1Shell
Time Machine Sparsebundle Fix
Ia.bak61
3 years ago15gpl-3.0Shell
We back up a lot of stuff from around the web; now it's time to back up the Internet Archive, just in case.
Alternatives To Textbar Timemachine
Select To Compare


Alternative Project Comparisons
Readme

textbar-timemachine

A TextBar script to monitor the status of your Time Machine / Time Capsule backups.


Here is what it looks like when a Time Machine backup is active:

textbar-timemachine screenshot

Note the ‘47%’ in the menu bar. That’s the only part which is visible until I click on it.

The ‘47%’ represents how much of the backup is done.

When Time Machine is not backing up, there’s nothing shown there.

If there is another part of the Time Machine process happening, it will be shown there in a CamelCasedWord, such as:

  • Copying
  • DeletingOldBackups
  • Finishing
  • HealthCheckCopyHFSMeta
  • HealthCheckFsck
  • MountingBackupVol
  • MountingBackupVolForHealthCheck
  • Starting
  • ThinningPostBackup
  • ThinningPreBackup

(There may be others. Those are the only ones that I’ve noticed.)

Everything from the line ‘Backup session status’ down to ‘Updated’ is the output of the command tmutil status which gives you a lot of detail about what’s going on with your Time Machine backup, but it’s not in the most user-friendly or readable format.

The purpose of the script textbar-timemachine.sh is to parse tmutil status into the friendlier format shown at the top.

The files bytes2readable.sh, commaformat.sh, and seconds2readable.sh are all files that are used by textbar-timemachine.sh

Some things to note:

  • When the progress meter gets to about 90% it will stop, sometimes for a long time. Then it will say that it is finished. I’ve never seen it actually show anything above 90% completed.

  • The Time Remaining can sometimes be off by a large margin, so I wouldn’t rely on it. Use it as a guide. (The “ETA” is simply a calculation of the “Time Remaining” added to the current time, so if one is wrong, the other will be too.)

  • I have often seen Time Machine claiming to backup far more data than I have on my drive, sometimes far more data than could fit on my drive if it was 100% full (even when it was mostly empty). Try not to worry about that. It’s normal.

Potential Bugs

I have tested this script with one local Time Machine drive (that is, a drive that I physically attach to my Mac) and one Time Capsule drive (a network location).

However, you could have multiple local drives, or multiple Time Capsule drives. If that happens, parts of this script might get confused, but the basic functionality of monitoring the process should still work fine.

Installation

I recommend putting all four of the .sh files in /usr/local/bin/.

Make sure they are executable: chmod a+rx /usr/local/bin/*.sh

Once you have them installed, download and install TextBar.

Click the + button at the bottom left of the TextBar - Preferences window. Give it a name -- I recommend “Time Machine” but you go with whatever feels right.

In the “Script” field, select /usr/local/bin/textbar-timemachine.sh

In the “Refresh” field, select how often (in seconds) it should update.

Turn “Notifications” off unless you want a notification every time it changes (which might be interesting in the beginning but will get old quickly).

It should look something like this:

TextBar Screenshot

Voilà! Now you’re up and running.

Questions?

If you have questions, create a new issue here and I will do my best to answer it.

(It's best to ask questions here vs email or on other forums, so that others who find it can see the Q&A.)

Popular Backup Projects
Popular Time Projects
Popular Data Storage Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Shell
Script
Time
Backup