gsutil cp missing --parents
See original GitHub issuegsutil cp does not offer the --parents flag.
for example, doing gsutil cp gs://my-bucket/**/pom.xml .
will end up with only one file on disk rather than all of the pom.xml files in the bucket. I would like to have cp
preserve the parents of each copied file as in cp --parents
on GNU cp.
Achieving this functionality by copying one by one and specifying the destination from outside gsutil is possible but slow.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:9 (2 by maintainers)
Top Results From Across the Web
cp - Copy files and objects | Cloud Storage - Google Cloud
The gsutil cp command allows you to copy data between your local file system and the cloud, within the cloud, and between cloud...
Read more >gsutil cp using -I and -r will copy all files into one directory
I am looking for something similar to GNU cp --parents, that will create the parent directories when copying a file.
Read more >Using gsutil to Perform Operations on Buckets and Objects
In this command, the -d option deletes files from the target if they're missing in the source (in this case, it deletes app.yaml...
Read more >When executing "gsutils cp" in python script I get Error ...
This error means that the Linux user is not set up or you are using the root user. gsutil (gcloud) must be initialized...
Read more >gsutil_3.34.ReleaseNotes.txt
Added doc warnings about losing version ordering if using gsutil -m cp between versioned buckets; ... the parent process would immediately stop execution, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for your reply. Well, I see that people made PRs for this 4.5 years ago and nothing was done. So I doubt that making another PR would change anything.
I was referring to the comment of @lawortsmann