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

Transfer file from gcp to webdav server

hi I am new to GCP and I was wondering is there a way I can create an automated file transfer from GCS to a WebDav server

0 1 1,111
1 REPLY 1

Hi @vahid_razaghzad,

Welcome to Google Cloud Community!

Yes, it is possible to automate the transfer of files from GCS (Google Cloud Storage) to a WebDAV server. One way to do this is by using a combination of Cloud Storage Transfer Service and Cloud Functions.
You can also use gsutil command line tool to automate the transfer by using a cron job.
Here are the steps to follow:

  • Create a service account in GCP and give it permissions to access the GCS bucket
  • Use gsutil to copy the files from GCS to a local directory
  • Use a WebDAV client (cadaver, for example) to upload the files from the local directory to the WebDAV server
    You can also use other tools like Rclone, which support GCS and WebDAV.
    Please note that the above steps are only a basic outline and you may need to adjust them depending on your specific use case and requirements.

Here are some resources that may help you with automating the transfer of files from GCS to a WebDAV server:

Thanks