aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOniriCorpe <oniricorpe@disroot.org>2024-05-11 20:28:48 +0200
committerFélix Piédallu <felix@piedallu.me>2024-05-27 11:58:07 +0200
commit2ffdf9338bff6bbe7e6dfc284de7dc2787e56d9c (patch)
treecf35f665eb0b2c053430af0e2ab78facf40d6fe1
parentdff27bce453d732183d2ec525ce7d9685a54df4a (diff)
downloadmastodon_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
-rw-r--r--doc/ADMIN.md14
-rw-r--r--doc/ADMIN_fr.md14
2 files changed, 28 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.
diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md
index c879081..777cbf3 100644
--- a/doc/ADMIN_fr.md
+++ b/doc/ADMIN_fr.md
@@ -48,6 +48,20 @@ sudo cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/op
Consulter [la documentation officielle](https://docs.joinmastodon.org/admin/tootctl/#media-remove) pour plus de détails.
+## Libérer de l'espace disque
+
+Afin de libérer de l'espace disque, vous pouvez utiliser les commandes suivantes :
+
+- [tootctl media remove](https://docs.joinmastodon.org/admin/tootctl/#media-remove) : supprime les copies de médias mises en cache localement depuis d'autres serveurs
+- [tootctl media remove-orphans](https://docs.joinmastodon.org/admin/tootctl/#media-remove-orphans) : recherche les fichiers qui n'appartiennent pas à des pièces jointes existantes et les supprime
+- [tootctl accounts cull](https://docs.joinmastodon.org/admin/tootctl/#accounts-cull) : supprime les comptes à distants qui n'existent plus
+
+Comme vu précédemment, chacune de ces commandes doit être construite comme tel :
+
+```bash
+sudo cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl commande
+```
+
## Avant la suppression de votre instance Mastodon
Avant de désinstaller définitivement Mastodon, vous devez lancer `tootctl self-destruct` pour annoncer à la fédération la suppression de vos utilisateurs et de votre instance.