Jevy Wang's Blog

IP Camera BAT 310 Hacking

Software

  • Install gcloud with gsutil included

Login google cloud using json file

document: https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account

1
gcloud auth activate-service-account test@test.iam.gserviceaccount.com --key-file=./secret.json

Copy data

reference this document for detail: https://cloud.google.com/storage/docs/gsutil/commands/cp

-copy bucket data to local

1
gsutil -m cp -r gs://my-bucket/data ./data

rsync data

reference this document for detail: https://cloud.google.com/storage/docs/gsutil/commands/rsync

  • rsync local data from bucket
    1
    gsutil -m rsync -d -r gs://mybucket/data  ./data

专题:

本文发表于 2020-03-12,最后修改于 2020-03-13。

本站永久域名jevy.wang,也可搜索「 Jevy Wang's Blog 」找到我。

期待关注我的 知乎专栏 ,查看最近的文章和动态。


上一篇 « Add an image layer to react mapbox gl 下一篇 » IP Camera BAT 310 Hacking

赞赏支持

请我吃胡萝卜 =^_^=

i ali

支付宝

i wechat

微信

推荐阅读

Big Image