Taking a backup from Strapi & Postgres
Hello everyone,
I need your assistance in finding a solution to backup the uploads folder of a Strapi hosted on Railway, along with a PostgreSQL database. I am concerned that I might make a mistake and the project will need to be redeployed, potentially resulting in the loss of all the Strapi images in the upload folder.
Has anyone encountered this issue before?
17 Replies
Project ID:
b1339d8a-844d-4c42-ad24-1f5cf54c558b
b1339d8a-844d-4c42-ad24-1f5cf54c558b
you aren't using cloudinary?
No
does strapi provide a way to export images?
I can install plugins to the Strapi through npm but i am afraid that when i do another deploy i will lose the uploads folder, this happened before
you are right, the next deployment will wipe the images, you are storing the images in the empherial container storage. you will have to download the images manually
OMG, is it possable to keep the upload folder in the future deployments ?
you would want to use cloudinary, the official strapi template uses it to persist media
or can i clone the container to my local ?
you can't, you have to manually download the images
That will take forever 😦
we all make mistakes, it's how we learn
if i took a template from the container, will it take all the media with it ? just in case i lost the images while trying another methods ?
that won't help unfortunately, you have the wrong idea
it's unfortunate but you have to manually download the images from your already deployed strapi service, don't do anything that could cause a restart or redeployment
Allright, i will start doing that
thank you so much for your help
I really appreciate it.
no problem!