#!/bin/bash cd $HOME/structure dbId=$(docker ps -q --filter name=db) docker exec $dbId mysqldump -u root -p123456 $1 | pv > $2