將檔案從 GCP 專案複製到 Google Cloud VM 實例

將檔案從 GCP 專案複製到 Google Cloud VM 實例

我已將文件上傳到我的主目錄中的 Google 專案:

我的目錄中的文件

我有一個名為情感實例 1 的實例

我想將檔案情緒_insights.zip從Google專案social-media-analysis-199517複製到我的實例

root@sentiment-instance-1:/home/amiteshkesinha#

嘗試使用以下命令但出現錯誤

amiteshkesinha@social-media-analysis-199517:~$ gsutil cp amiteshkesinha@social-media-analysis-199517>:/home/amiteshkesinha/sentiment_insights.zip root@sentiment-instance-1>:/home/amiteshkesinha

運行此命令後的輸出

如何複製這個文件。我是 GCP 的新手,無法找到出路。

答案1

我使用 Google Cloud SDK Shell 解決了這個問題。編寫以下命令後,文件已更新。

gcloud compute scp D:/projects/Amitesh/sentiment_insights.zip --zone=us-east1-b root@sentiment-instance-1:/home/amiteshkesinha/

相關內容