Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCS Rsync from Python client library?

I am trying to rewrite some bash scripts in Python, and specifically am trying to rewrite a line that executes gsutil -m rsync -r /local/path/to/data gs:/path/to/data. However, I am not able to find any references to rsync functionality in the Python client library documentation here.

If anyone has solved this, please let me know. If this functionality is not currently implemented in the client library, does anyone know why?

like image 389
andre622 Avatar asked Nov 08 '22 04:11

andre622


1 Answers

gsutil is a command line tool and has application-level logic beyond the client library, so not all of the features of gsutil are available in the client library. gsutil does not presently consume the google-cloud-python client library, as that library was developed later.

like image 118
Travis Hobrla Avatar answered Nov 14 '22 22:11

Travis Hobrla