Database recovery and best practices

I just had a scary accident where cursor IDE inadvertently deleted my Supabase database .
What is the best way to prevent such incidents.
Can entire projects be backed up or only database and db objects? Any best practices?
Was this page helpful?