-
Notifications
You must be signed in to change notification settings - Fork 35
Tips
Mountain/\Ash edited this page Dec 8, 2024
·
1 revision
-
flyctl machines list
note the ID to your running machine, you need to connect to it as the Volume is mounted to it -
flyctl console --machine ${MACHINE_ID}
-
df -h
Check remaining disk space before cleanup -
Run the following commands from the script below to clean up some caches
#!/bin/bash RAILS_ENV=production /opt/mastodon/bin/tootctl accounts prune RAILS_ENV=production /opt/mastodon/bin/tootctl statuses remove --days 2 RAILS_ENV=production /opt/mastodon/bin/tootctl media remove --days 2 RAILS_ENV=production /opt/mastodon/bin/tootctl media remove-headers --include-follows --days 7 RAILS_ENV=production /opt/mastodon/bin/tootctl preview_cards remove --days 2 RAILS_ENV=production /opt/mastodon/bin/tootctl media remove-orphans
-
df -h
Check disk space availability after cleanup