Backups are a critical part of any organisation’s IT infrastructure. That’s not just to restore accidentally deleted files but also to be able to recover after a cyber attack.
In the event of a breach – be it a ransomware attack or something else - there’s no guarantee you will get your data back or that it won’t be compromised in some way, such as bugs in the code. Your real route to recovery is to restore from a backup.