Search code examples
encryptionamazon-web-servicesubuntu-servers3cmd

s3cmd: how to use server side encryption?


I'm trying to encrypt some files on Amazon S3 using server side encryption. According to this link

http://s3tools.org/kb/item9.htm

I should only add this flag

--server-side-encryption

on the put or sync command I'm trying to run, but when I do that I get a "s3cmd: error: no such option: --server-side-encryption" message.

How do I run this command to use server side encryption?

s3cmd put file.zip s3://test/file.zip

I'm using ubuntu 14.04 server 64 bits.


Solution

  • You need a more recent version of s3cmd than what is in the ubuntu repositories. Use github.com/s3tools/s3cmd master branch (preferred), or the copy in the Debian experimental repository.