Share your code.
A simple Node script to download every file in a Google Cloud Storage Bucket.
npm install gcs-downloader
- Get a key.json file from Google and save it into the
- Set environment variables for
PROJECT_NAME. These can be set in a
.envfile, a sample of which is included as
- Run the script with
npm start. All files in the specified bucket will be downloaded to the
./outputdirectory. Downloads happen recursively, one by one, so this should only be used on your local machine for tasks like a quick one time backup.