R
Railway•13mo ago
a99divx

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?
No description
17 Replies
Percy
Percy•13mo ago
Project ID: b1339d8a-844d-4c42-ad24-1f5cf54c558b
a99divx
a99divxOP•13mo ago
b1339d8a-844d-4c42-ad24-1f5cf54c558b
Brody
Brody•13mo ago
you aren't using cloudinary?
a99divx
a99divxOP•13mo ago
No
Brody
Brody•13mo ago
does strapi provide a way to export images?
a99divx
a99divxOP•13mo ago
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
Brody
Brody•13mo ago
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
a99divx
a99divxOP•13mo ago
OMG, is it possable to keep the upload folder in the future deployments ?
Brody
Brody•13mo ago
you would want to use cloudinary, the official strapi template uses it to persist media
a99divx
a99divxOP•13mo ago
or can i clone the container to my local ?
Brody
Brody•13mo ago
you can't, you have to manually download the images
a99divx
a99divxOP•13mo ago
That will take forever 😦
Brody
Brody•13mo ago
we all make mistakes, it's how we learn
a99divx
a99divxOP•13mo ago
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 ?
No description
Brody
Brody•13mo ago
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
a99divx
a99divxOP•13mo ago
Allright, i will start doing that thank you so much for your help I really appreciate it.
Brody
Brody•13mo ago
no problem!
Want results from more Discord servers?
Add your server