To resolve this, we should store meta information and also write the config name during the backup stage, and restore it accordingly. To simplify things, it seems the best idea is to use a single metafile instead of versions and other elements.
This is a breaking change and will make old backups incompatible with the new tool due to changes in the system file name we will use for storing metadata.
Currently, we are only storing versions when we perform a backup.
However, there is an issue with hardcoded values that we should aim to remove: https://github.com/manticoresoftware/manticoresearch-backup/blob/fa1fecdf149e60248b47e1acfe64cf23d9c83fee/src/Lib/ManticoreBackup.php#L260-L263
To resolve this, we should store meta information and also write the config name during the backup stage, and restore it accordingly. To simplify things, it seems the best idea is to use a single metafile instead of versions and other elements.
This is a breaking change and will make old backups incompatible with the new tool due to changes in the system file name we will use for storing metadata.