Specific step for some updates
Update from 0.9.1 to 0.9.2
To ensure that all the new files and permissions are working properly, we advise installing v0.9.2 in a new location and synchronizing the database from v0.9.1.
Advantages of a fresh install
A fresh install will minimize potential update issues. It will also provide a fallback option in case anything doesn't work out during the 0.9.2 installation.
-
Backup the v0.9.1 database.
docker compose exec -it smartscope mysqldump --user=$MYSQL_USER --password=$MYSQL_ROOT_PASSWORD $MYSQL_DATABASE > /mnt/backups/0_9_1_backup.sql' exit
-
Turn off the 0.9.1 instance.
./smartscope.sh stop
-
Create a new installation directory
mkdir SmartScope_0-9-2 cd SmartScope_0-9-2
-
Follow the installation procedure for the
latest
version. -
Copy over your
database.conf
andsmartscope.conf
from your 0.9.1 installation. -
Copy over the database backup to the new directory.
cp /path/to/0.9.1/backups/0_9_1_backup.sql backups/
-
Launch smartscope.
./smartscope.sh start
-
Use the new database restoration command.
./smartscope.sh run restore_db 0_9_1_backup.sql
-
Restart smartscope.
./smartscope.sh restart
Update to 0.9.1
To update to 0.9.1 from any prior version. There is one setting that needs to be updated:
- Open database.conf and change the MYSQL_ROOT_PASSWORD entry and rename it to MYSQL_PASSWORD:
Original file:
MYSQL_USER=root
MYSQL_ROOT_PASSWORD=pass
MYSQL_DATABASE=smartscope
MYSQL_HOST=db
MYSQL_USER=root
MYSQL_PASSWORD=pass
MYSQL_DATABASE=smartscope
MYSQL_HOST=db
Update to 0.8
If you whish to update from 0.7 to 0.8 or higher, we strongly recommend using the new installation procedure and moving over the settings from the original docker-compose.yml into the new structure to ease any future update.