0
GCP 문서를 따르려고합니다. 내가 전화 한 통을 만들어gsutil을 사용하여 GCP에 파일 업로드
my-awesome-bucketmgtest
나는 맥북에서 파일 업로드를 시도하고있다 :
[email protected]:~$ gsutil cp /tmp/foo.txt gs://my-awesomebucketmgtest
CommandException: No URLs matched: /tmp/foo.txt
[email protected]:~$ gsutil cp file://tmp/foo.txt gs://my-awesome-bucketmgtest
CommandException: No URLs matched: file://tmp/foo.txt
[email protected]:~$ gsutil cp /tmp/foo.txt gs://my-awesome-bucketmgtest
CommandException: No URLs matched: /tmp/foo.txt
[email protected]:~$ gsutil cp tmp/foo.txt gs://my-awesome-bucketmgtest
CommandException: No URLs matched: tmp/foo.txt
이 작업을 수행하는 올바른 방법은 무엇입니까?
/tmp/foo.txt가 Google Cloud Shell의/tmp 디렉토리에있는 경우 해당 명령이 작동합니다. 그러나 실제로 내 MacBook에있는 /tmp/foo.txt라는 파일을 업로드하는 것에 대해 궁금합니다. 어떻게 내 양동이에 업로드합니까? –
@MarkGinsburg gsutil도 로컬 컴퓨터에서 업로드 할 수 있습니다. 로컬 터미널에서 명령을 실행하기 만하면됩니다. 말 그대로이 설명의 첫 번째 줄은 "gsutil cp 명령을 사용하면 로컬 파일 시스템과 클라우드간에 데이터를 복사 할 수 있습니다." - 내 대답을 편집하여 문서에 대한 링크를 포함시킵니다. - 잠깐, 내가 이미 문서에 대한 링크를 포함 했어, 하! 긴 하루. – ingernet
감사! 로컬 MacBook에 GCloud SDK가 있으며 모든 것이 잘되어 있습니다. –