gcs-downloader
v1.0.0
Published
Download all files from a Google Cloud Storage Bucket
Downloads
3
Readme
node-gcs-downloader
A simple Node script to download every file in a Google Cloud Storage Bucket.
Install
npm install gcs-downloader
Usage
- Get a key.json file from Google and save it into the
gcs-downloader
directory. - Set environment variables for
PROJECT_ID
andPROJECT_NAME
. These can be set in a.env
file, a sample of which is included as.env_sample
. - Run the script with
npm start
. All files in the specified bucket will be downloaded to the./output
directory. Downloads happen recursively, one by one, so this should only be used on your local machine for tasks like a quick one time backup.