File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,26 @@ push() {
53
53
docker push " timjdfletcher/${IMAGE_NAME} :latest"
54
54
}
55
55
56
+
57
+ timemachineLogs () {
58
+ filter=' processImagePath contains "backupd" and subsystem beginswith "com.apple.TimeMachine"'
59
+
60
+ # show the last 12 hours
61
+ start=" $( date -j -v-12H +' %Y-%m-%d %H:%M:%S' ) "
62
+
63
+ echo " "
64
+ echo " [History (from $start )]"
65
+ echo " "
66
+
67
+ log show --style syslog --info --start " $start " --predicate " $filter "
68
+
69
+ echo " "
70
+ echo " [Following]"
71
+ echo " "
72
+
73
+ log stream --style syslog --info --predicate " $filter "
74
+ }
75
+
56
76
copyToTestHost () {
57
77
build --quiet
58
78
size=$( docker image inspect samba-timemachine:tmp | jq -r ' .[0].Size' )
@@ -71,6 +91,7 @@ case ${CMD} in
71
91
test) _test ;;
72
92
push) push ;;
73
93
copyToTestHost) copyToTestHost ;;
94
+ timemachineLogs) timemachineLogs ;;
74
95
release) release ;;
75
96
* ) usage ;;
76
97
esac
You can’t perform that action at this time.
0 commit comments