You don’t need to restore from a backup (see below). But yes that will replace your configuration and the core version.
The reason your automations disappeared is because you are using device triggers and actions. If any of those devices are unavailable your automations disappear until the devices return. Recover the devices and your automations will reappear. They are not gone, just unavailable.
If you want to stop this from happening then stop using device automations (highly recommended for other reasons too):