Page 1 of 1

getting z-wave controller backup from a raspberry without network

Posted: 02 Nov 2022 22:42
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

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

Posted: 03 Nov 2022 19:48
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.

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

Posted: 03 Nov 2022 20:22
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.