Here is how to do it, you use this shortcut to backup your shortcuts to a zip file and you can also create an automation that makes the backup automatically everyday.
Unfortunately there’s currently no way to share an automation but here’s how to create one yourself.
Some history…
The shortcuts you create in your iPhone are automatically saved to your iCloud and synchronized between your devices but you might want to keep a backup of shortcuts that you have deleted and the previous versions of your shortcuts.
Keep coding!