Lost tens or hundreds of photos
Hi Supabase Team,
I ran into a serious issue with my project for an NGO, and I’m hoping you might be able to help.
My project uses Next.js with Supabase for storage, authentication, and database. I had around 199 images in a storage bucket, which were linked to my database records (book covers).
Here’s what happened:
I downloaded all 199 images from the Storage bucket (this was the number shown in the dashboard – the reality is there were many more).
I compressed them.
I tried deleting the old ones from the Storage bucket. When I attempted to delete them in bulk, nothing seemed to happen, so I kept trying until I eventually deleted them in smaller batches of 50.
I then uploaded the optimized images back to the bucket.
After that, many images no longer display correctly in my application. Out of ~2000 books, ~200 should have Supabase-hosted images, and the rest have external URLs. But now a lot of those Supabase images are missing. So the issue is that I have removed many more than 200 images, as the Supabase panel showed me I have only 199 images and I kept deleting them without noticing I actually remove more than 199 of them (!?).
So an issue is with the Storabe object listing, no matter how many items I have, the counter is 199 🙁
Anyway, my question is:
Is there any way Supabase can restore my bucket to a previous state (backup, snapshot, or point-in-time recovery)?
Or is there any kind of hidden versioning/soft delete available for objects in Storage?
This is a big problem for me because reassigning images to hundreds of books manually would take a huge amount of work.
My project ID is: alwpqzhzwqaqrckjrfjf.
Thanks in advance for any help you can provide!
Best regards,
Vlad Ilie
1 Reply
This is a user helping user forum and not monitored regular by Supabase staff.
There is no back up for s3 data though. So if files are deleted from the s3 "bucket" they are gone.