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:
parent
ce506b9ba5
commit
066169ff06
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user