docker ps
docker exec <container_id_or_name> mongodump --username <username> --password <password> --authenticationDatabase <auth_db> --out /backup
docker cp :/backup ./backup
sudo apt-get update | |
sudo apt-get install ca-certificates curl gnupg | |
sudo install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
sudo chmod a+r /etc/apt/keyrings/docker.gpg |