Wouldn't be it so useful to have a button inside Studio to generate an automatic backup from all classes which are being overwritted before importing new ones?
Thank you for submitting the idea. Based on information from our experts the status of your idea was changed to "Will not implement". Good luck!
Could this be achieved with a Studio Template / Addin.
Analyze the XML import file content to generate list of serialized item names
Then generate XML export of items to new file - This could include Classes, Routines, HL7 schemas, and even globals.
Expect the backup needs to be an XML export to disk.
Another consideration if using serverside source control, could be to automatically checkout all the items mentioned in an XML Export, prior to attempted import.
Use modern IDE, such as VSCode, and Source control. VSCode, notifies, in case if server's version is changed separately, so, you will be able to compare files.