Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

download file to local machine

when ever a file is uploaded/overwritten  to cloud storage , i wish to download it in real time to local machine 

without using gsutil command 

 

 

 

Solved Solved
0 1 738
1 ACCEPTED SOLUTION

You could try using a Cloud Function being triggered by a Create Event in Storage. In that function, you can implement the download side.

See this tutorial. It has a similar objective. Write and deploy an Event-Driven Cloud Function, the function is triggered by uploading a file to Cloud Storage.

Also, see Upload events.

View solution in original post

1 REPLY 1

You could try using a Cloud Function being triggered by a Create Event in Storage. In that function, you can implement the download side.

See this tutorial. It has a similar objective. Write and deploy an Event-Driven Cloud Function, the function is triggered by uploading a file to Cloud Storage.

Also, see Upload events.