My apologies in advance if this is not the right topic, but I did something stupid and I’m a little desperate here. While I was struggling with creating a git repo for my HA /config dir, in order to keep my files safe, after issuing a few git commands, my whole directory disappeared (Feel the irony?).
The config dir is (was) on my Synology NAS, just like my HA instance, running in a docker container. The config remote dir was mounted on my mac, and when the accident happened, I was playing around in that directory to sync the files to my git server, running also on my NAS. The shared directory that holds the files on the NAS has no recycle bin enabled.
The nice thing is, HA is still running without noticing anything about this, since it loaded up the config when it was started up a few days ago. The not-so-nice thing is HA will be restarted by an automation in a few hours (at 2 AM), so then I’ll lose everything.
So this is where I am. Sitting on a timed bomb.
My question: what would you guys do in my place to get back the configuration and all files? Is there a hidden dump-config tool in HA that dumps the current configuration from where I can reconstruct my working setup?
Thank you in advance for your help.
PS: …and yes, this is a lesson to learn. Always backup, don’t be so stupid like me.