Skip to content

Instantly share code, notes, and snippets.

@stefan-matic
Created October 28, 2021 15:09
Show Gist options
  • Save stefan-matic/70c46dd495ced27dcd5e6aac7f5088c4 to your computer and use it in GitHub Desktop.
Save stefan-matic/70c46dd495ced27dcd5e6aac7f5088c4 to your computer and use it in GitHub Desktop.
Copies each file in the passed directory to container
#!/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