forked from ual/PILATES
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupload_to_gcloud.sh
executable file
·21 lines (18 loc) · 1.27 KB
/
upload_to_gcloud.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
if [ $# -eq 2 ]
then
echo "Uploading results to Google Cloud in Region: $1";
echo "GCloud directory: $2";
gcloud alpha storage cp -r -n pilates/beam/beam_output/$1/year-* gs://beam-core-outputs/$2/beam/
gcloud alpha storage cp -r -n pilates/activitysim/output/final* gs://beam-core-outputs/$2/activitysim/
gcloud alpha storage cp -r -n pilates/activitysim/output/year* gs://beam-core-outputs/$2/activitysim/
gcloud alpha storage cp -r -n pilates/urbansim/output/year* gs://beam-core-outputs/$2/urbansim/
gcloud alpha storage cp -r -n pilates/activitysim/output/pipeline.h5 gs://beam-core-outputs/$2/activitysim/pipeline.h5
gcloud alpha storage cp -r -n pilates/activitysim/data/ gs://beam-core-outputs/$2/activitysim/data/
gcloud alpha storage cp -r -n pilates/postprocessing/output/ gs://beam-core-outputs/$2/inexus/
gcloud alpha storage cp -r -n pilates/postprocessing/MEP/ gs://beam-core-outputs/$2/MEP/
gcloud alpha storage cp -n log_pilates_$1.out gs://beam-core-outputs/$2/log_pilates_$1.out
rclone copy pilates/postprocessing/MEP/ s3://beam-outputs/pilates-outputs/$2/MEP/
else
echo "Please provide a region (e.g. 'austin' or 'sfbay') and GCloud directory name"
fi