From 97b90603446d2fdf755b0a0e93006393a924117b Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Mon, 18 Oct 2021 15:13:10 -0400 Subject: [PATCH] make: add targets to help view log status --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 20d136c..e542d57 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,16 @@ rebase: git rebase master systemctl daemon-reload +# Show status of most recent backup run +.PHONY: status +status: + systemctl status --full --lines 999999 --no-pager --all borg-backup || true + +# Watch live log output +.PHONY: tail +tail: + journalctl --all --follow --lines 200 --unit borg-backup + .PHONY: clean clean: rm -f README.html