How to clone my app directory and files to local machine ?

I need to copy all of my app directory and files to local machine but cannot find a way to do so. Is there such an option ?

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.

Site Moderator
Site Moderator badge
May 12, 2023


Assuming that your source-code was deployed from a GitHub/GitLab repository you can download the files from GitHub/GitLab by cloning the repository on your local machine.

If you need to backup your App Platform’s data, consider using Managed Database or Spaces to store your data, then you can easily download your data from those services.

For more information, please refer to the App Platform documentation.

Hope that this helps!

Site Moderator
Site Moderator badge
May 11, 2023

Hey @6150608e10bf4ecd8c466bd4379d9b,

I see this has been talked about here:

App Platform uses ephemeral filesystems so on each deploy all changes that happen during that deployment are lost.

Two options you could try are:

  1. Add a HTTP route on your app that lets you download the file (make sure this route is secured).
  2. Upload your file to DigitalOcean Spaces and then download them to your dev machine (or wherever you need the data).

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel