comparison unixSoft/bin/tm-log @ 506:44f1d686dff1

tm-log: new tool to show time machine logs on macOS I keep needing this, and it keeps being a hassle.
author Augie Fackler <raf@durin42.com>
date Mon, 04 Jan 2021 13:35:28 -0500
parents
children
comparison
equal deleted inserted replaced
505:b78aa03c0c00 506:44f1d686dff1
1 #!/bin/sh
2
3 filter='processImagePath contains "backupd" and subsystem beginswith "com.apple.TimeMachine"'
4
5 # show the last 12 hours
6 start="$(date -j -v-12H +'%Y-%m-%d %H:%M:%S')"
7
8 echo ""
9 echo "[History (from $start)]"
10 echo ""
11
12 log show --style syslog --info --start "$start" --predicate "$filter"
13
14 echo ""
15 echo "[Following]"
16 echo ""
17
18 log stream --style syslog --info --predicate "$filter"