@Tobias Loibl there is no out of the box backup solution, however 30 days retention is available for the objects in Azure AD after they are deleted and stored in recycle bin. Third party tools such as Quest provides backup and recovery options of Azure AD and M365 data.
Hope this helps.
JS
==
Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.