I need to (programmatically, in a shell script) upload an EAR file to an Amazon S3 bucket on Debian (5.0.4). What, if any, Debian package provides simple, scriptable tools for that?

Ideally this would be a set of command line tools akin to those in Ubuntu's ec2-api-tools package.

(I want raw S3 bucket access, so please don't suggest solutions like Jungle Disk.)


Solution 1:

George Reese recommended s3cmd in "Cloud Application Architectures". It seems to be readily available as a debian package.

Solution 2:

The Python Boto library would be one method. Alternatively, you could use something like s3fs, which allows you to mount an S3 bucket. With that solution, all you'd need to do is copy or move your EAR file to the specified mount point.