Nettoyer Mastodon

En cour de rédaction

Clear old domain

for i in $(cat /var/tmp/mastodon/2020-01-03/domains_drop.txt); do RAILS_ENV=production bin/tootctl domains purge $i > /var/tmp/mastodon/$(date +‘%Y-%m-%d’)/purge.txt; done

Remove old media RAILS_ENV=production bin/tootctl media remove --days=90 > /var/tmp/mastodon/$(date +‘%Y-%m-%d’)/remove.txt

Remove orphan media

RAILS_ENV=production bin/tootctl media remove-orphans > /var/tmp/mastodon/$(date +‘%Y-%m-%d’)/remove-orphans.txt

Drop innexistant account

RAILS_ENV=production bin/tootctl accounts cull > /var/tmp/mastodon/$(date +‘%Y-%m-%d’)/domains_cull.txt

Crawl all know domain

RAILS_ENV=production bin/tootctl domains crawl > /var/tmp/mastodon/$(date +‘%Y-%m-%d’)/domains_crawl.txt


Révision #1
Créé 18 janvier 2020 13:06:50 par Dryusdan
Mis à jour 18 janvier 2020 13:07:07 par Dryusdan