2

Nix: Streaming gsutil transfers

 2 years ago
source link: https://proinsias.github.io/til/nix-streaming-gsutil-transfers/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Nix: Streaming gsutil transfers

less than 1 minute read

Cloud Storage supports streaming transfers, which allow you to stream data to and from your Cloud Storage account without requiring that the data first be saved to a file.

# Stream uploads.
sort data_measurements.json | gsutil cp - gs://my_app_bucket/data_measurements.json

# Stream downloads.
gsutil -m cp gs://my_app_bucket/data_measurements.json.gz - | gunzip | jq '.'

Via Google Cloud docs.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK