diff options
| author | yunohost-bot <yunohost@yunohost.org> | 2023-04-14 09:23:33 +0000 |
|---|---|---|
| committer | yunohost-bot <yunohost@yunohost.org> | 2023-04-14 09:23:33 +0000 |
| commit | d5acfd722de0c944ce53fc2fd91efb9474d59fef (patch) | |
| tree | 6eff90d4930884e6f03b01c2f51c17fdf4f2c839 /README.md | |
| parent | 54525b53ebc42d6cf022cdeaaf39dce4fe6198cf (diff) | |
| download | mastodon_ynh-d5acfd722de0c944ce53fc2fd91efb9474d59fef.tar.gz mastodon_ynh-d5acfd722de0c944ce53fc2fd91efb9474d59fef.tar.bz2 mastodon_ynh-d5acfd722de0c944ce53fc2fd91efb9474d59fef.zip | |
Auto-update README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 41 |
1 files changed, 1 insertions, 40 deletions
@@ -40,10 +40,6 @@ Mastodon is a free, open-source microblogging social network. It is a decentrali ### Install #### Using *screen* in case of disconnect - -Screen (or tmux) can be used to make sure your session is not interrupted in case of connection problems. -See [tutorial](https://www.howtogeek.com/662422/how-to-use-linuxs-screen-command/) for more background information. - ``` $ sudo apt-get install screen $ screen @@ -57,45 +53,10 @@ $ screen -r ### Update -##### Please use screen as the upgrade process can take a long time! - -#### A note about backups - -First of all: Mastodon uses a local cache to save media (such as posted images, videos etc.). This cache can grow huge. -You could consider cleaning up your local cache first as otherwise your backup will be very big and you might run out of disk space: - -To check your space usage, on a command line run: - -`$ sudo cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl media usage` - -If your cache is too big to backup, you can run the following command to clean up Attachments (the first line). Substitute X by the number of days you want to keep, e.g. 1 day. All older images will be deleted but will be refetched from the original server if necessary. - -First dry-run to see how much space is freed up (without actually removing): - -`$ sudo cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl media remove --days=X --dry-run` - -If all looks good commit the cleanup: - -`$ sudo cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl media remove --days=X ` - -##### Upgrade - -The actual upgrade can be done using the following command: - -`$ sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh --debug ` - - -Upgrading from 3.5.3 to 4.1.2 directly has not been integration-tested. It is recommended to do a two-step upgrade: - -First upgrade to 4.0.2~ynh2: - -`$ sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh/tree/94381183ca2d14da72234b53c9a83972ffb16e54 --debug ` - -Check your installation. If all looks well, upgrade to 4.1.2~ynh1: +#### Using *screen* highly recommended `$ sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh --debug ` - ### Administrate with tooctl `$ (cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl --help)` |
