-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws s3 cp does not work with multiple files #6360
Comments
Hi @flaviut, thanks for reaching out. You can use the Based on the example you provided, I think you want something like this:
Or if you don’t want to copy every file, then you could use the parameters
You can find more I hope that helps! Please let us know if you have any other questions or feedback. |
|
Hey, thanks for taking a look! Recursive isn't what I'm looking for here--let's say that I have a long list of files I want to download, and there's no pattern to them that can be expressed with globs. Or maybe I'm exploring, and I find it easier to just use the regular multi-parameter syntax. Sure, I could use a bash loop or |
Hi @flaviut, I see what you’re saying. If you wanted to download specific filenames with the CLI then you could do something like this:
You might also want to consider looking into our SDKs for additional functionality in various programming languages: https://aws.amazon.com/getting-started/tools-sdks/ For example, in our Python SDK (boto3) this would allow you to loop through a list of specified files and download them:
|
It's great that there's a few different workarounds, and I really appreciate you going in depth to help me accomplish my tasks, but fundamentally this is a UX issue. I expected things to work a certain way due to my experience with |
I’m sorry to hear you are frustrated. Can you tell us how you were using I know you preferred not to use a bash loop but I thought I'd share this one-liner solution anyway as it might help: |
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
aws s3 cp
does not support multiple files. The documentation says multiple files are supported, and v1 supports multiple files.SDK version number
aws-cli/2.2.30 Python/3.8.8 Linux/5.13.12-arch1-1 exe/x86_64.arch prompt/off
Platform/OS/Hardware/Device
Linux/5.13.12-arch1-1
To Reproduce (observed behavior)
Expected behavior
Copy all the files listed to the last parameter.
Logs/output
Get full traceback and error logs by adding
--debug
to the command.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: