Created
October 28, 2021 15:09
-
-
Save stefan-matic/70c46dd495ced27dcd5e6aac7f5088c4 to your computer and use it in GitHub Desktop.
Copies each file in the passed directory to container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# docker cp test.txt pgadmin_container:/var/lib/pgadmin/storage/admin_admin.com/ | |
# change line 7 if more granularity is needed in the search pattern | |
for i in ${1}/* | |
do | |
docker cp $i pgadmin_container:/var/lib/pgadmin/storage/admin_admin.com/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment