diff options
| author | OniriCorpe <oniricorpe@disroot.org> | 2024-05-11 20:28:48 +0200 |
|---|---|---|
| committer | Félix Piédallu <felix@piedallu.me> | 2024-05-27 11:58:07 +0200 |
| commit | 2ffdf9338bff6bbe7e6dfc284de7dc2787e56d9c (patch) | |
| tree | cf35f665eb0b2c053430af0e2ab78facf40d6fe1 /doc/ADMIN.md | |
| parent | dff27bce453d732183d2ec525ce7d9685a54df4a (diff) | |
| download | mastodon_ynh-2ffdf9338bff6bbe7e6dfc284de7dc2787e56d9c.tar.gz mastodon_ynh-2ffdf9338bff6bbe7e6dfc284de7dc2787e56d9c.tar.bz2 mastodon_ynh-2ffdf9338bff6bbe7e6dfc284de7dc2787e56d9c.zip | |
Advertise tootctl media remove and other media cleanup related commands in ADMIN.md
Diffstat (limited to 'doc/ADMIN.md')
| -rw-r--r-- | doc/ADMIN.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/ADMIN.md b/doc/ADMIN.md index dfce904..9e9e52a 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -48,6 +48,20 @@ sudo cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/op Check [the official documentation](https://docs.joinmastodon.org/admin/tootctl/#media-remove) for more details. +## Release disk space + +To liberate disk space, you can use the following commands: + +- [tootctl media remove](https://docs.joinmastodon.org/admin/tootctl/#media-remove): removes locally cached copies of media from other servers +- [tootctl media remove-orphans](https://docs.joinmastodon.org/admin/tootctl/#media-remove-orphans): scans for files that do not belong to existing media attachments, and remove them +- [tootctl accounts cull](https://docs.joinmastodon.org/admin/tootctl/#accounts-cull): remove remote accounts that no longer exist + +As seen above, each of these commands must be structured as such: + +```bash +sudo cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl command +``` + ## Before your Mastodon instance deletion Before definitively uninstalling Mastodon, you have to run `tootctl self-destruct` to broadcast your users and instance deletion to the federation. |
