How to backup docker digital ocean?

I would like to know how I can download my uploads folder inside docker which is located in digital ocean

I want to download the uploads folder

See:

1 Like

I already knew this but my uploads folder doesn’t appear in the file list

remote list

local list

From what I know, docker creates a separate image for uploads

SSH in to your Droplet.

To see all the containers:

docker ps

Then to list the contents of the selected container:

docker exec -it CONTAINER_ID bash

Which will give a shell and display something like:

app  certs  db  extensions  index.js  lib  node_modules  package-lock.json  package.json  public  siteTemp  views

So to enter the public directory simply type:

cd public

You can now see the contents of the public directory which is more than likely where your uploads directory resides.

Now you’ll need to learn a few basic *nix commands on how to copy to your desktop or to another directory on the remote machine. I’m familiar with Linux to Linux but as for Linux to Windows or Mac I can’t help there. You may need to do a little Google search or two to find the answer…

Thanks Cheese :wink:

1 Like