Skip to content

Instantly share code, notes, and snippets.

@JayCuthrell
Last active December 27, 2023 20:54
Show Gist options
  • Save JayCuthrell/cb8f8fd5ab7246a2fd50b290d455b606 to your computer and use it in GitHub Desktop.
Save JayCuthrell/cb8f8fd5ab7246a2fd50b290d455b606 to your computer and use it in GitHub Desktop.
crontab for mastodon as of Dec 2023
SHELL=/bin/bash
05 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl accounts prune
15 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl statuses remove --days 1
25 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove --days 1
35 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove --remove-headers --include-follows --days 0
45 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl preview_cards remove --days 1
55 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove-orphans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment