12
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Firebase storageのフォルダを一括ダウンロードする

Last updated at Posted at 2019-09-30

※自分用メモ
FirebaseStorageには現時点でフォルダ単位でファイルをダウンロードするAPIが用意されていない。
しかし、GCP用のバケット管理アプリであるgsutilを使えばフォルダ単位の一括ダウンロードは容易に実行できる。

##gsutilのインストール
参考:https://apps-gcp.com/cloud-sdkinstall-commentary/

##ダウンロード
gsutil -m cp -R gs://<バケット名> <ダウンロード先>
とすればバケット内のファイルをすべてダウンロードできる。
gsutil -m cp -R gs://<バケット名>/<サブフォルダ名> <ダウンロード先>
とすればサブフォルダを指定することも簡単にできる。

以上
参考:https://stackoverflow.com/questions/41461337/how-to-download-entire-folder-from-firebase-storage

12
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?