Maintenance: Difference between revisions

From neuromatch
(Created page with "Up to: Part Of::Tech WG Things we do to maintain the server :). We should *absolutely* move these to an ansible repo, but for now they are just free range. == Cron Tasks == Each of these are defined for the mastodon user's crontab unless specified othersue === Cache Pruning === See: Storage#Cache Pruning 8AM UTC on the 1st of the month <syntaxhighlight> 0 8 1 * * RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --remove-headers --dry-run...")
 
No edit summary
 
Line 5: Line 5:
== Cron Tasks ==
== Cron Tasks ==


Each of these are defined for the mastodon user's crontab unless specified othersue
Each of these are defined for the mastodon user's crontab unless specified otherwise (<code>/var/spool/cron/crontabs/mastodon</code>). Edit them by switching to the mastodon user <code>sudo su mastodon</code> and using <code>crontab -e</code>


=== Cache Pruning ===
=== Cache Pruning ===

Latest revision as of 01:15, 16 August 2023

Up to: Tech WG

Things we do to maintain the server :). We should *absolutely* move these to an ansible repo, but for now they are just free range.

Cron Tasks

Each of these are defined for the mastodon user's crontab unless specified otherwise (/var/spool/cron/crontabs/mastodon). Edit them by switching to the mastodon user sudo su mastodon and using crontab -e

Cache Pruning

See: Storage#Cache Pruning

8AM UTC on the 1st of the month

0 8 1 * * RAILS_ENV=production  /home/mastodon/live/bin/tootctl media remove --remove-headers --dry-run