Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/runManifestPull.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@
export MY_VENV=~/pyVenvForThree
export PYTHONPATH=.:${MY_VENV}/lib

TABLE='your-project-id.your-dataset.your-manifest-table' # BQ table with your manifest
TARG_DIR='/path-to-your-home-dir/destination' # Has to be on a filesystem with enough sapce
PAYING='your-project-id' # Needed for requester pays though it is free to crossload to a cloud VM

cd ~
pushd ${MY_VENV} > /dev/null
source bin/activate
popd > /dev/null
python3 ~/IDC-Examples/scripts/pullManifestToVM.py
python3 ~/IDC-Examples/scripts/pullManifestToVM.py --table ${TABLE} --destination ${TARG_DIR} --paying ${PAYING}
deactivate
2 changes: 2 additions & 0 deletions scripts/setupVM.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ if [ ! -d "${HOME}/pyVenvForThree" ]; then
python3 -m pip install google-api-python-client
python3 -m pip install google-cloud-storage
python3 -m pip install google-cloud-bigquery
python3 -m pip install hurry.filesize
python3 -m pip install tqdm
deactivate
fi