1

I am trying to use s3cmd put using the --files-from argument as follows:

s3cmd --progress put --files-from=list_of_files_to_upload_to_s3.txt s3://softwares/backup/packages/

But am getting a ERROR: Not enough parameters for command 'put'.

Are there any examples on how to use s3cmd put with the --files-from argument?

Guillaume Jacquenot
  • 11,217
  • 6
  • 43
  • 49
ossandcad
  • 778
  • 5
  • 18
  • By the way, these days it is better to use the [AWS Command-Line Interface (CLI)](http://aws.amazon.com/cli/) rather than `s3cmd`. – John Rotenstein Dec 25 '16 at 04:22

1 Answers1

3

Turns out s3cmd simply (and obviously) needs a source folder in addition to the --files-from argument.

So the final command would be:

s3cmd --progress put --files-from=./list_of_deployit_package_names_to_upload_to_s3.txt SRCFOLDER s3://ewe-softwares/backup/deployit-packages/

ossandcad
  • 778
  • 5
  • 18