Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # show time machine logs
- # -f = follow
- PRED='subsystem == "com.apple.TimeMachine" AND processImagePath CONTAINS "backupd"'
- if [ $# -gt 0 ]; then
- log stream --style syslog --predicate "$PRED" --info
- else
- log show --style syslog --predicate "$PRED" --info | sed -e 's/ localhost / /' \
- -e 's/ (TimeMachine) / /' \
- -e 's/[[]com.apple.TimeMachine.TMLog/[/' \
- -e 's/\.[0-9][0-9][0-9][0-9][0-9][0-9]\+[0-9][0-9][0-9][0-9] / /'
- fi
Add Comment
Please, Sign In to add comment