Is there a xml file i can backup to restore a panel layout?

From time to time something happens that causes the side panels to reset to a default layout.
Is there a simple way to restore a saved configuration?

Hello - backing up/restoring with a copy of the settings file here:
“%AppData%\Roaming\McNeel\Rhinoceros\6.0\settings\settings-Scheme__Default.xml”

But, can you tell what causes it to revert? Does it revert to all default settings?

-Pascal

Thanks @pascal, it worked perfectly.
Found that works better when also backing up “window_positions-Scheme__Default”

That issue has occurred after running massive Gh Scripts. Even if I close the Rhino normally it may return “Rhino quit unexpectedly” message. On next Rhino startup panels are reset.
Pretty sure office tec messed up something amongst the .xml files.
We created a custom toolbar to deploy to all users but I have a feeling that the wrong .xml was edited.
if I look at:
%appdata%\McNeel\Rhinoceros\6.0\Plug-ins\Toolbars (dc297053-96c0-4883-a688-8326b4e024a8)\settings
I have exactly the same files as in Rhino Settings. identical in name and content.
I reverted these to a scheme made previously, consisting of:

<?xml version="1.0" encoding="utf-8"?>
<settings id="2.0">
  <settings>
    <entry key="ToolBarBitmap">2</entry>
    <child key="Sidebars" hidden="True">
      <entry key="7491ffac-ebf2-4214-bf42-d3d1e4e0f0e1_file">0f7a9bae-04d2-426b-9022-65bf3554d80d</entry>
      <entry key="7491ffac-ebf2-4214-bf42-d3d1e4e0f0e1_group">42b36785-e767-4c66-8704-4d828bcb0225</entry>
      <entry key="7491ffac-ebf2-4214-bf42-d3d1e4e0f0e1_visible">True</entry>
    </child>
    <child key="StartupSettings">
      <entry key="MajorVersion">1</entry>
      <entry key="MinorVersion">4</entry>
      <entry key="RuiFiles">
        <list>
          <value>C:\Users\XXXX\AppData\Roaming\McNeel\Rhinoceros\6.0\UI\default.rui</value>
          <value>C:\Users\XXXX\AppData\Roaming\McNeel\Rhinoceros\6.0\UI\CUSTOM_TB.rui</value>
        </list>
      </entry>
    </child>
  </settings>
</settings>

The previous values where preventing the backups from fixing the issue.

My feeling is previous xml settings in plugin\toolbar where overriding the base settings after a crash.