Is there a way to backup all of the files and images that I have saved in Bubble? I’d like to have record to ensure that everything will still be ok in the event something goes terribly wrong with Bubble.
The export feature on the database gives me a path to the file, but there doesn’t seem to be a way to bulk export the files.
I’m working on it. Beyond just backup reasons, there are migration reasons also why you want to do this.
The way I’ve been thinking about it is to copy the images to your own Bucket. (Rather than store them as a service in my bucket - and thereby side step figuring out how to charge for storage ). For example if your were wanting to migrate your database to, for example Sup abase or Xano (which have storage) you’d want to rewire the URLs in file and image types.
I think that would work great, to be able to copy it over to our own bucket. We already use the PlanB backup service for our database, so maybe that is something they could also incorporate at some point to move it to our own bucket.
How would I know which URLs in bubble point to which images in my new bucket? There would have to be some sort of mapping created so that if I need to retrieve from backups, I can get the data.
Why not keep your bubble filenames if you are happy with it? So in Supabase you define your bucket name and the new url will be [supabase_url]/[bucketname]/[old_bubble_filename]
Perhaps using a option set in Bubble to store the Supabase_url, Bucketname so you can later always easily change to another bucket
It’s the URL reference in the File and Image data types I am thinking about.
Keep the file names as is.
There is a design pattern of tracking meta data of file uploads in a table, and referencing that in your database, cf the file or image URL directly. That helps for future storage management.
Another technique I’ve seen is to use a proxy, pass the file name and let the proxy “decide” from where to get the file (bubble or external storage).