How can I see Time Machine activity in Console with macOS Sierra.

In OS X I simply typed "backupd" in Console-search box.

Now it seems more complicated.


Jur Kuipers, The Netherlands

iMac (27-inch Mid 2010), OS X Mavericks (10.9.1)

Posted on Sep 21, 2016 2:39 AM

Reply
31 replies

Nov 20, 2016 8:00 PM in response to Curtis Tucker

Curtis,


This was an extremely helpful great idea. I added your script at the end of an Automator calendar alarm workflow I had created to use tmutil to launch a Time Machine backup once every night (see below). Now when the backup is done running each night, your script immediately creates a log output to a file before those entries disappear from the syslog datastore! The end result is oddly what TimeMachine should simply still do by design, let you see the completed backup sessions in a persistent log file in case something goes awry. When there's a will there's a way though!


tmutil startbackup --block --rotation

DATE=$(date +%Y-%m-%d)

log show --start $DATE --predicate 'subsystem == "com.apple.TimeMachine"' --info | grep 'upd: (' | cut -c 1-19,140-999 >> /Users/Shared/BackupLogs/time-machine-log.txt

echo "-" >> /Users/Shared/BackupLogs/time-machine-log.txt

Nov 21, 2016 7:49 PM in response to C5Pilot

UPDATE--revised the script to limit collection/saving of the log entries to the session of Time Machine run from this script each time:


DATE=$(date +%Y-%m-%d" "%H:%M:%S)

tmutil startbackup --block --rotation

log show --start "$DATE" --predicate 'subsystem == "com.apple.TimeMachine"' --info | grep 'upd: (' | cut -c 1-19,140-999 >> /Users/Shared/BackupLogs/time-machine-log.txt

echo "-" >> /Users/Shared/BackupLogs/time-machine-log.txt

Nov 22, 2016 2:48 PM in response to jurkuipers

My Solution


I am using a MacBook Pro (Retina, 15-inch, Late 2013) with Sierra 10.12.1 (16B2555). Ever since installing the first version ( not beta) my Time Machine stopped doing anything obvious other than 'Preparing Backup'.

To cut a month long story short, Apple - in all its forms, didn't have an answer for me that worked, but by putting hints form the web together I created a solution that mostly works for me although I am not happy about the stability.


My method is (mostly) quick and easy once I found it. Firstly, check you have enough space on your hard drive to store the hourly local snapshots. If you have less than 20% free space you can't keep a full 24 hour set, the list is trimmed to fit - or so I read. But, I found I stored no snapshots at all. Possibly because the changes on my drive where massive and the space was limited.


So, after moving loads of stuff to a new external drive - I tried again. Still no luck.


The final step was to find the 'UserName.sparsebundle' entry on the backup drive and open it. Look for an entry named something like 2016-11-23-091720.inProgress and delete it. This is ( I think) just a log file of the blocks of data that Time Machine has started working on. None of these will be lost, indeed some will have been created during the interminable 'Preparing backup' stage.


There is evidently some corruption in this '.inProgress' file as when you start the backup system once more, this file is regenerated - and the system works correctly !



However, if it has been several days since the last backup worked, the changes will take several days via wifi to save. Even by direct cable it can take a day and a half, but , after that - it works swimmingly.


I say that, but from time to time I get a notification that I have not done a backup for 60+ days - which is not true as I can restore from both my current day's local snapshots and a few prior days as stored on the external backup.


I am not certain that all days are indeed stored, I think some are lost from time to time and I don't know why - perhaps there was nothing to save.


So far I have not yet seen a weekly restore point.


Hope that helps

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.

How can I see Time Machine activity in Console with macOS Sierra.

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