Question

I'd love to be able to make a copy from a file on the app container,

I’ve created a strapi app but forgot to change the database config and it’s currently setup using sqlite.

If i make a git commit the app will rebuild and i will loose my data.

I’d love to be able to make a copy of this file and go through the process of migrating the data into a postgres db, but i’m unsure how i can do this if i can’t SSH into the app container. Please help


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

I think that you could use the cp command to copy the SQLite file to your public directory, and then you could access your app URL /the_sqlite_file via your browser and download the file that way.

Let me know how it goes.

Regards,

Bobby