First, you'll need to install the
mc command:
- Backup your server
- Visit the MinIO console at media.your-server.social:45135 and log in with the MINIO_ROOT_USER from the server config file at /etc/default/minio. Visit "Access Keys" and create an Access Key + Secret Key
- Install the mc command. This will need an alias - use the Access Key + Secret Key created in the previous step. There's also a detailed guide on how to create an alias available. Use port 9000 for the alias' address (media.your-server.social:9000).
- Now you can follow the upgrade guide, but if you haven't used systemctl edit --full to edit the service file, you need to ensure that the systemd service file won't get overwritten and forget its custom settings. So, do it like this:
- (Backup the systemd service file: cp /lib/systemd/system/minio.service /lib/systemd/system/minio.service.bak)
- Install the deb package (you can copy/paste from the minio upgrade guide to get the current version):
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_<current_version>_amd64.deb -O minio.deb
sudo dpkg -i minio.deb
- (Restore the systemd service file: cp /lib/systemd/system/minio.service.bak /lib/systemd/system/minio.service)
- Update the service definition: sudo systemctl daemon-reload
- Restart the service: mc admin service restart ALIAS
- Check service health: mc admin info ALIAS
- Reboot the server to ensure that the service will survive a reboot
If you forgot your alias' name, run
mc alias list.
You should also update the mc commandline tool, both on the server and on your local installation where you pull backups from:
mc update