Skip to content

Commit

Permalink
Update masto guide with tootctl command to remove media
Browse files Browse the repository at this point in the history
  • Loading branch information
renatolond committed Mar 18, 2019
1 parent 1be00d3 commit 73978e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ Now if your instance goes down or your IPv6 stops working, you should get an ema
Mastodon downloads media from other instances and caches them locally. If you don't clean this from time to time, this will only keep growing. Using mastodon user, you can add a cron job that cleans it up daily using `crontab -e` and adding:

```
0 2 * * * /bin/bash -lc "cd live; RAILS_ENV=production bundle exec rake mastodon:media:remove_remote" 2>&1 /home/mastodon/remove_media.output
0 2 * * * /bin/bash -lc "cd live; RAILS_ENV=production bundle exec bin/tootctl media remove" 2>&1 /home/mastodon/remove_media.output
```

If you don't have any cron installed in your server, you need to take a look in [Arch Linux's wiki page about cron](https://wiki.archlinux.org/index.php/cron){:target="_blank"}.
Expand Down

0 comments on commit 73978e3

Please sign in to comment.