getting z-wave controller backup from a raspberry without network

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
koenvi
Posts: 1
Joined: 17 Feb 2018 00:59

getting z-wave controller backup from a raspberry without network

Post by koenvi »

Hi,

I have been running zway on a RPI 1B for many years now.
As I tried to do an update of system software recently, something went wrong and I lost network connectivity.
As I am unable to fix it, I think it's better to reinstall Raspbian from scratch and reinstall zway.
But I don't have a recent backup (no *.zab, nor *.zbk)
Is there a way to create a new backup on the old RPI from command line?

Thanks in advance for any help / suggestion!
Koen
micky1500
Posts: 304
Joined: 07 Feb 2016 16:29
Location: England

Re: getting z-wave controller backup from a raspberry without network

Post by micky1500 »

You don't say what version firmware or Raspbian Version.
Are you upgrading to 4.0.0 ?
Getting a new Raspberry, or just rebuilding the OS.

Before you do anything, to preserve your current data.
Turn it off, Remove the z-way device and the SD card.

Re-Build a new system on a different SD Card, install Buster or later, and v4.0.0 z-way. (without the z-way device plugged in, ignoring the errors)
Copy over the /opt/z-way-server folder from the old SD card to the new one.
Turn off, insert the z-way device, turn on with fingers crossed.

To read the old SD card, I use an USB SD card holder in the Raspberry. Google how to mount the drive and how to copy the files.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.4, Raz 7 Pro, Serial API Version: 07.42
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: getting z-wave controller backup from a raspberry without network

Post by PoltoS »

As mentioned by @micky1500,

1) Save your existing files in the /opt/z-way-server/config/zddx and /opt/z-way-server/automation/storage folders. (To save remote access ID copy also /etc/zbw folder and /etc/init.d/zbw_connect).
2) Set up a new system with 4.0.0
3) stop z-way and zbw services (

Code: Select all

/etc/init.d/z-way-server stop && /etc/init.d/zbw_connect stop
). copy all files from the old system to the new (to the corresponding places, make sure to do it as root [with sudo]).
4) in /opt/z-way-server folder run

Code: Select all

./z-get-tty config/zddx/*
to make sure files are translated from the old format to the new (I assume you use a very old Z-Way version).
5) start Z-Way and ZBW services.

I think this will do the job.
Post Reply