I have backup several databases e.g. SQL Server, PostgreSQL in a Docker container to it and now I need to get backup from Docker container to my Windows disk. As far as I know, it may also possible to copy file from Docker container to disk by using the following command:
docker cp <Container ID>:<Container path> <host path>
But, I am wondering if there is a direct way to backup directly to a Disk on Windows using pgAdmin or command. I also tried pgAdmin, but it cannot succeeded. Any idea?
Source: Docker Questions