Upgrading
Musare upgrade process.
To install a new instance please see Installation.
Docker
Instructions
- Make a backup!
./musare.sh backup
- Execute
./musare.sh update
. If an update requires any configuration changes
or database migrations, you will be notified.
- To update configuration compare example configs against your own and
add/update/remove any properties as needed. For more information on
properties see Configuration. Backend
configuration updates always update the
configVersion
property.
- Backend, compare
backend/config/default.json
against
backend/config/local.json
.
- Environment, compare
.env.example
against .env
.
- To migrate database;
./musare.sh stop backend
- Set
migration
to true
in backend/config/local.json
./musare.sh start backend
.
- Follow backend logs and await migration completion notice
./musare.sh attach backend
.
./musare.sh stop backend
- Set
migration
to false
in backend/config/local.json
./musare.sh start backend
.
Non-Docker
Instructions
- Make a backup!
- Stop all services
git pull
cd frontend && npm install
cd ../backend && npm install
- Compare example configs against your own and add/update/remove any properties
as needed. For more information on properties see Configuration.
Backend configuration updates always update the
configVersion
property.
- Backend, compare
backend/config/default.json
against backend/config/local.json
.
- Start MongoDB and Redis services.
- Run database migration;
- Set
migration
to true
in backend/config/local.json
- Start backend service.
- Follow backend logs and await migration completion notice.
- Stop backend service.
- Set
migration
to false
in backend/config/local.json
- Start backend and frontend services.
Upgrade/downgrade MongoDB
Make sure to always look at the upgrade/downgrade instructions in the
MongoDB release notes before,
and always make a full backup of your data before proceeding.
Docker
Instructions
- Stop the backend (
./musare.sh stop backend
)
- Make a backup of MongoDB (
./musare.sh backup
)
- Stop and reset the mongo container and delete the database folder
(
./musare.sh reset mongo
)
- Change the MongoDB version inside your .env file.
- Start the mongo container (
./musare.sh start mongo
)
- Import your backup of MongoDB (
./musare.sh restore
)
- Note: backups are stored inside the backups folder by default.
- Start the backend (
./musare.sh start backend
)
Non-Docker
Instructions
- Stop your backend
- Make a backup of MongoDB
- Stop and reset MongoDB
- Upgrade/downgrade MongoDB
- Start MongoDB
- Restore your MongoDB backup
- Start your backend