After having messed around a bit on my Raspberry Pi that hosts Gladys, I think I will cleanly reinstall the OS with the latest image provided by the Gladys project.
Is it possible to import into this new instance the MQTT device configurations that were created in the old Gladys?
If you look closely, it has already been explained
You must, in SSH, type the command ‹ docker stop gladys ›.
Then, copy the file ‹ gladys-production › from ‹ /var/lib/gladysassistant ›
You will just need to put this file back in place after a full reinstallation.
For ZigBee, you need to go through the zigbee
Be careful with this kind of tool, I don’t know how it works internally, but I’d be surprised if it worked reliably.
Copying/pasting files live on a production instance while it’s running is the best way to end up with a shaky backup, or worse, to break your production.
The best method has already been mentioned by @GBoulvin above:
You need to stop Gladys, then back up the files, then restart Gladys.
Ah yes, but I was only talking about backing up the Node-RED part; for the Gladys part there’s Gladys-plus that does the job and, on top of that, no need for a NAS! But as I said above, the day Gladys manages the Docker Node-RED with flow backups …and actually I mixed things up with another reply
For those who use Gladys without the Plus, wouldn’t it be possible to run a bash script with cron (or Node-RED), for example every day at 4 a.m., like: