<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Going_back_to_a_previous_version</id>
	<title>Going back to a previous version - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Going_back_to_a_previous_version"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Going_back_to_a_previous_version&amp;action=history"/>
	<updated>2026-09-18T22:43:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=Going_back_to_a_previous_version&amp;diff=16811&amp;oldid=prev</id>
		<title>Walter vl at 16:38, 15 January 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Going_back_to_a_previous_version&amp;diff=16811&amp;oldid=prev"/>
		<updated>2022-01-15T16:38:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tutorial describes how you can revert to a previous version of Domoticz on the &amp;#039;&amp;#039;&amp;#039;Raspberry Pi&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;MAKE BACKUPS !!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Both stable and Beta versions won&amp;#039;t allow going to a version with a different database layout. They will create an entry in the logfile and stop executing. !&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This howto will only work if there were no [[Domoticz versions - Commits#Database versions|database schema changes]] between latest Stable and the version you want to back-out.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For reverting back from Beta from another Beta see the following page for instructions: [[Raspberry Pi#Revert to backup after incorrect beta update.]]&lt;br /&gt;
=Steps to perform=&lt;br /&gt;
&lt;br /&gt;
#First backup your database from the webGUI (Setup &amp;gt; Application settings &amp;gt; Backup database (in left menu)).&lt;br /&gt;
#Backup your /scripts folder so you can restore it after the fresh install.&lt;br /&gt;
#Login via SSH&lt;br /&gt;
#After you login check if you are in /home/pi (or just &amp;lt;code&amp;gt;cd /home/pi/&amp;lt;/code&amp;gt; to be sure)&lt;br /&gt;
#Then stop domoticz (&amp;lt;code&amp;gt;sudo service domoticz.sh stop&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Remove the domoticz folder (&amp;lt;code&amp;gt;rm -rf domoticz&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Make a new domoticz folder (&amp;lt;code&amp;gt;mkdir domoticz&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Go to that folder (&amp;lt;code&amp;gt;cd domoticz&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Then download the latest stable version (&amp;lt;code&amp;gt;wget https://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Extract it (&amp;lt;code&amp;gt;tar xvfz domoticz_linux_armv7l.tgz&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Remove the compressed file (&amp;lt;code&amp;gt;rm domoticz_linux_armv7l.tgz&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Reboot (&amp;lt;code&amp;gt;sudo reboot&amp;lt;/code&amp;gt;)&lt;br /&gt;
#Import your database backup (the &amp;#039;domoticz.db&amp;#039; file).&lt;br /&gt;
#Reboot again (&amp;lt;code&amp;gt;sudo reboot&amp;lt;/code&amp;gt;)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now be fully up and running again on the stable version instead of the beta&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Same as above will appy for the procedure described below&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;This howto will only work if there were no database schema changes between latest Stable and the version you want to backout&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Also have a look at this forum thread for more information: http://domoticz.com/forum/viewtopic.php?f=4&amp;amp;t=4660.&amp;lt;br&amp;gt;&lt;br /&gt;
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:&amp;lt;br&amp;gt;&lt;br /&gt;
(Needs to be run in the /home/pi/domoticz/ folder)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd /home/pi/domoticz &amp;lt;br /&amp;gt;&lt;br /&gt;
wget https://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz &amp;lt;br /&amp;gt;&lt;br /&gt;
tar xvfz domoticz_linux_armv7l.tgz &amp;lt;br /&amp;gt;&lt;br /&gt;
rm -f domoticz_linux_armv7l.tgz &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Domoticz]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Install]]&lt;/div&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
</feed>