Going back to a previous version
This tutorial describes how you can revert to a previous version of Domoticz on the Raspberry Pi.
MAKE BACKUPS !!
Both stable and Beta versions won't allow going to a version with a different database layout. They will create an entry in the logfile and stop executing. !
This howto will only work if there were no database schema changes between latest Stable and the version you want to back-out.
For reverting back from Beta from another Beta see the following page for instructions: Raspberry Pi#Revert to backup after incorrect beta update.
Steps to perform
- First backup your database from the webGUI (Setup > Application settings > Backup database (in left menu)).
- Backup your /scripts folder so you can restore it after the fresh install.
- Login via SSH
- After you login check if you are in /home/pi (or just
cd /home/pi/
to be sure) - Then stop domoticz (
sudo service domoticz.sh stop
) - Remove the domoticz folder (
rm -rf domoticz
) - Make a new domoticz folder (
mkdir domoticz
) - Go to that folder (
cd domoticz
) - Then download the latest stable version (
wget https://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz
) - Extract it (
tar xvfz domoticz_linux_armv7l.tgz
) - Remove the compressed file (
rm domoticz_linux_armv7l.tgz
) - Reboot (
sudo reboot
) - Import your database backup (the 'domoticz.db' file).
- Reboot again (
sudo reboot
)
You should now be fully up and running again on the stable version instead of the beta
Same as above will appy for the procedure described below
This howto will only work if there were no database schema changes between latest Stable and the version you want to backout
Also have a look at this forum thread for more information: http://domoticz.com/forum/viewtopic.php?f=4&t=4660.
User mbliek says that removing anything is not needed, and that running the commands below should be sufficient to get to the latest stable version:
(Needs to be run in the /home/pi/domoticz/ folder)
cd /home/pi/domoticz
wget https://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz
tar xvfz domoticz_linux_armv7l.tgz
rm -f domoticz_linux_armv7l.tgz