From 73978e33629ab0c0253c2acc69556011029b68ef Mon Sep 17 00:00:00 2001 From: "Renato \"Lond\" Cerqueira" Date: Mon, 18 Mar 2019 22:48:49 +0100 Subject: [PATCH] Update masto guide with tootctl command to remove media --- .../2018-07-13-running-a-mastodon-instance-using-archlinux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2018-07-13-running-a-mastodon-instance-using-archlinux.md b/_posts/2018-07-13-running-a-mastodon-instance-using-archlinux.md index e8f8adc..937180e 100644 --- a/_posts/2018-07-13-running-a-mastodon-instance-using-archlinux.md +++ b/_posts/2018-07-13-running-a-mastodon-instance-using-archlinux.md @@ -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"}.