I just figured out that MinIO is available via Synocommunity. You should install it from there and NOT use the method I describe here.
Depending on the CPU in your NAS you need to download the matching binary from https://dl.min.io/server/minio/release/
For my aging 2-Bay Syno with an ARM CPU it would be something like this:
cd /tmp
wget https://dl.min.io/server/minio/release/linux-arm/minio
Make the file executable and move to a propper place
chmod +x minio
mv minio /usr/bin/
Synology uses upstart as init system. We need to write an upstart script to get minio running on start up.
The script needs to go into /etc/init
as minio.conf
.
start on runlevel 1 and syno.share.ready and syno.network.ready
stop on runlevel [06]
setuid <your backup user>
env MINIO_ACCESS_KEY=<your access key>
env MINIO_SECRET_KEY=<your secret key>
exec /usr/bin/minio --config-dir /etc/minio server <path to repo>
💡
|
For some reason, the option |
🔥
|
The service desctiption is containing your minio root crendentials. You should set appropriate access rights. chmod 700 /etc/init/minio.conf |
To make upstart aware of the new service do initctl reload-configuration
.
Start the service manually with initctl start minio
.
Check if the service is running with initctl status minio
.
Stop the service manually with initctl stop minio
.