Recover ui-lovelace.yaml from memory

Hi,

I’m using YAML mode for configuration and just had an accident manipulating the ui-lovelace.yaml file which ended up as a zero size file (basically lost the contents).

I have backup of the configuration directory which is about 2 months old and I would hate to revert lovelace config to that old version.

Is there a simple way to dump the current configuration from the Home Assistant running process?

Many thanks
Mircea