I exported data from my strapi app hosted on DigitalOcean App platform to a .tar. how do I download it to my local system?
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!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hey!
As the DigitalOcean App Platform does not offer SSH access, you can use alternative methods such as using the Strapi admin panel, creating a temporary download link, or using an API endpoint.
Strapi Admin Panel (if your file is accessible there):
Creating a Temporary Download Link:
curl
to download the .tar file.Using an API Endpoint:
curl
or any HTTP client to make a request to this endpoint and download the file.For steps 2 and 3, here’s a basic example of how you might set up a route in Strapi to serve a static file (assuming you’re using Strapi v4):
But in general, you should not really store any important files on the local App Platform storage as it is ephemeral, meaning that all of the information on the local storage gets lost after a deployment.
For permanent storage, you should either store your data in a database on an S3 storage like the DigitalOcean Spaces.
Best,
Bobby