1
mirror of https://github.com/jakejarvis/mastodon-utils.git synced 2025-04-26 06:45:22 -04:00

clearer cron logs

This commit is contained in:
Jake Jarvis 2022-12-20 15:51:37 -05:00
parent ce506b9ba5
commit 066169ff06
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,8 @@
# exit when any step fails # exit when any step fails
set -euo pipefail set -euo pipefail
echo -e "\n===== backup.sh: started at $(date '+%Y-%m-%d %H:%M:%S') =====\n"
# initialize path # initialize path
. "$(dirname "$(realpath "$0")")"/../init.sh . "$(dirname "$(realpath "$0")")"/../init.sh
@ -45,3 +47,5 @@ sudo rm -rf --preserve-root "$TEMP_DIR"
echo "Saved to $ARCHIVE_DEST" echo "Saved to $ARCHIVE_DEST"
echo "🎉 done! (keep this archive safe!)" echo "🎉 done! (keep this archive safe!)"
echo -e "\n===== backup.sh: finished at $(date '+%Y-%m-%d %H:%M:%S') =====\n"

View File

@ -7,6 +7,8 @@
# exit when any step fails # exit when any step fails
set -euo pipefail set -euo pipefail
echo -e "\n===== weekly_cleanup.sh: started at $(date '+%Y-%m-%d %H:%M:%S') =====\n"
# initialize path # initialize path
. "$(dirname "$(realpath "$0")")"/../init.sh . "$(dirname "$(realpath "$0")")"/../init.sh
@ -16,3 +18,5 @@ fi
tootctl media remove --days 7 tootctl media remove --days 7
tootctl preview_cards remove --days 90 tootctl preview_cards remove --days 90
echo -e "\n===== weekly_cleanup.sh: finished at $(date '+%Y-%m-%d %H:%M:%S') =====\n"