diff --git a/schutzbot/save_journal.sh b/schutzbot/save_journal.sh new file mode 100755 index 00000000..ab359c47 --- /dev/null +++ b/schutzbot/save_journal.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# use tee, otherwise shellcheck complains +sudo journalctl --boot | tee journal-log >/dev/null + +# copy journal to artifacts folder which is then uploaded to secure S3 location +cp journal-log "${ARTIFACTS:-/tmp/artifacts}"