Created
February 13, 2018 02:16
-
-
Save sussan0416/840f0d51616fe00e1f5274c911a1e696 to your computer and use it in GitHub Desktop.
Cloud Datalabに大きなデータをアップロードする方法 ref: https://qiita.com/sutchan/items/263cf60ff76152426ccc
This file contains 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
gcloud projects list | |
gcloud config set core/project プロジェクトID |
This file contains 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
gcloud compute scp --zone [zone_name] ~/my_local_directory/data.tar my_account@instance_name:/home/my_account |
This file contains 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
gcloud compute --project "project_name" ssh --zone "zone_name" "instance_name" |
This file contains 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
cd ~ | |
sudo mv data.tar /mnt/disks/datalab-pd/content/datalab/ | |
cd /mnt/disks/datalab-pd/content/datalab/ | |
sudo tar xzvf data.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment