I have been using KM for about 6 months with one synced file. This afternoon the Editor is showing me an older version of my macros. Everything I did yesterday (add new groups, add new macros, extensively modify several macros) are all gone. This is the first time this has happened to me. Is there any way to retrieve yesterday's version of the .kmsync file? I save the macro file at an iCloud folder which sync's it with all my other Macs. Has been working well for months. Also, I noticed in that folder that there were multiple versions saved July 1 to July 8. This would be great if that can be happen regularly. (I am not concerned about disk size.)
It's not documented and subject to change, but I believe it saves a revision the first time there is an editor change on a new date. If there are no changes on a day then there will be gaps in the saves.
You can, of course, simply Undo any deletion, but this will not save you in cases where you don't notice a mistake for a few days.
A good process if you need more than Undo can be:
Quit & Relaunch the Keyboard Maestro Editor
Revert to a useful time.
Select and Copy or Export the missing or changed groups or macros
Revert to At Editor Launch (hence the first step) - there is also Revert Before Last Revert, but that is fragile.