Guest User

Untitled

a guest
Sep 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # show time machine logs
  4. # -f = follow
  5.  
  6. PRED='subsystem == "com.apple.TimeMachine" AND processImagePath CONTAINS "backupd"'
  7.  
  8. if [ $# -gt 0 ]; then
  9. log stream --style syslog --predicate "$PRED" --info
  10. else
  11. log show --style syslog --predicate "$PRED" --info | sed -e 's/ localhost / /' \
  12. -e 's/ (TimeMachine) / /' \
  13. -e 's/[[]com.apple.TimeMachine.TMLog/[/' \
  14. -e 's/\.[0-9][0-9][0-9][0-9][0-9][0-9]\+[0-9][0-9][0-9][0-9] / /'
  15. fi
Add Comment
Please, Sign In to add comment