Update Diva manually
Manual migration/update is always a useful option for any version of diva-beta-net. For early testnet versions, automatic scripts are not backward compatible, and a manual upgrade is required.
1. Get the new version of diva-beta-net​
Stop the current docker-compose file navigating to the original diva folder:
cd ~/diva-beta-net
docker compose down
Create a backup of the whole directory where the diva-beta-net was running by moving it to another folder:
mv ~/diva-beta-net ~/diva-beta-net-bak
And then, clone a fresh diva-beta-net to the parent folder:
git clone https://github.com/shamirlabs/diva-beta-net ~/diva-beta-net
Restore the .env
from the previous installation:
cp ~/diva-beta-net-bak/.env ~/diva-beta-net/.env
2. Migrate the data​
Copy the .diva
folder from the ~/diva-beta-net-bak
folder to the new folder ~/diva-beta-net
:
cp -r ~/diva-beta-net-bak/.diva ~/diva-beta-net/.diva
3. Done​
You are ready to starts all the containers again.
docker compose up -d
Diva logs can be checked using:
docker logs diva -f