The most unthinkable has happened just now, just as I completed and test my flows, after 2 days of no sleep and delighted to be finished, unfortunately, all my flows have just disappeared!! GONE! 10 min ago!!
I added a button via GPIO pin as the last peach of the puzzle and between / pull up / and pull done the switch floated and crashed node-red. I have restored the PI zero and on the restart of node-red, it was completely blank, everything and all my work are gone, I want to cry, to be honest !!
Please tell me my flows can be recovered somehow, PLEASE PLEASE. someone / anyone help
Starting as a systemd service.
12 Jul 07:58:37 - [info]
Welcome to Node-RED
===================
12 Jul 07:58:37 - [info] Node-RED version: v1.0.6
12 Jul 07:58:37 - [info] Node.js version: v10.19.0
12 Jul 07:58:37 - [info] Linux 4.19.118+ arm LE
12 Jul 07:58:55 - [info] Loading palette nodes
Missing ENV var CONFIG_PATH
12 Jul 07:59:39 - [info] Dashboard version 2.22.1 started at /psanode
12 Jul 07:59:41 - [info] Settings file : /home/pi/.node-red/settings.js
12 Jul 07:59:41 - [info] Context store : 'default' [module=memory]
12 Jul 07:59:41 - [info] User directory : /home/pi/.node-red
12 Jul 07:59:41 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Jul 07:59:41 - [info] Flows file : /home/pi/.node-red/flows_psanode.json
Missing ENV var CONFIG_PATH
12 Jul 07:59:42 - [warn]
You might have caused file corruption or your SD card is bad.
This is a horrible lesson in backing up I'm afraid.
You still have much of the stuff we discussed in forum posts etc to build from and as it's only just occurred, things should be fresh in your memory so a rebuild wind have the same level of pain.
Hopefully someone else knows of a trick or means of recovering lost files but don't hold your breath.
Edit. I'm blind. Sorry. It looks like your flow file is present.
Is it empty?
Try opening the .JSON files in a text editor. Do you see your recent work? (Search for a word you recently typed)
Edit 2 - on the off chance you had started node-red with a command line, search your full computer filesystem for *.json
i wonder how this is possible, band new SD card and Pi Zero W.
i do have a backup , but that was of 5 days ago and i have done a lot since then , hours and hours of work. its no officially 32 hours i have last slept or even left the pc due to the deadline tomorrow ,