Follow

What regular mastodon related maintenance cronjobs do you guys run?

@mhamzahkhan

30 8 * * * bin/tootctl media remove >> /var/log/masto_media.log 2>&1
30 9 * * * bin/tootctl preview_cards remove >> /var/log/masto_media.log 2>&1
30 10 * * * bin/tootctl statuses remove >> /var/log/masto_status.log 2>&1
30 12 * * 0 bin/tootctl accounts refresh --all >> /var/log/masto_refresh.log 2>&1

@tyr Awesome! Thank you! That's exactly what I was looking for. I haven't been running preview_cards remove... my S3 bucket is huge 😓

@mhamzahkhan

another good one to run now and again is

bin/tootctl media remove_orphans

i don't have it on a timer, but it will check your buckets for files that should have been deleted but weren't.

Sign in to participate in the conversation
Mastodon@intahnet.co.uk

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!