Close DB before overwriting db file during backup import
@@ -11384,8 +11384,7 @@ bool DeRestPluginPrivate::importConfiguration()
args.append("e");
args.append("-y");
args.append(path + "/deCONZ.tar.gz");
- args.append("-o");
- args.append(path);
+ args.append("-o" + path);
archProcess->start(cmd, args);
#endif
#ifdef Q_OS_LINUX
@@ -11396,6 +11395,9 @@ bool DeRestPluginPrivate::importConfiguration()
archProcess->deleteLater();
archProcess = 0;
+ ttlDataBaseConnection = 0;
+ closeDb();
+
//unpack .tar
if (!zipProcess)
{
