From 2a879ea8b5306e52fabb0cdcb7990d005934a141 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 21 Apr 2022 10:14:23 +0200 Subject: [PATCH] Added timemachine notes to the knowledge base --- knowledge base/timemachine.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 knowledge base/timemachine.md diff --git a/knowledge base/timemachine.md b/knowledge base/timemachine.md new file mode 100644 index 0000000..8904c0a --- /dev/null +++ b/knowledge base/timemachine.md @@ -0,0 +1,17 @@ +# TimeMachine + +## TL;DR + +```shell +# follow logs +log stream --style syslog --predicate 'senderImagePath contains[cd] "TimeMachine"' --info --debug + +# add or set a destination +sudo tmutil setdestination +``` + +## Follow logs + +- use `stream` to keep watching "tail style" +- use `--predicate` to filter out relevant logs +- add `--style syslog` to watch them in a syslog style