docker-s3cmd
s3cmd in a Docker container. This is useful if you are already using Docker. You can simply pull this container to that Docker server and move things between the local box and S3 by just running a container.
-
Copy from local to S3:
docker run --env aws_key=<AWS_KEY> --env aws_secret=<AWS_SECRET> --env cmd=sync-local-to-s3 --env DEST_S3=s3://destination.bucket/ -v /local/directory/:/opt/src -d garland/docker-s3cmd
-
Copy from S3 to local:
docker run --env aws_key=<AWS_KEY> --env aws_secret=<AWS_SECRET> --env cmd=sync-s3-to-local --env SRC_S3=s3://source.bucket/ -v /local/direcoty/:/opt/dest garland/docker-s3cmd
-
Run interactively with s3cmd
docker run -i -t --env aws_key=<AWS_KEY> --env aws_secret=<AWS_SECRET> --env cmd=sync-s3-to-local --env SRC_S3=s3://source.bucket/ -v /local/direcoty/:/opt/dest garland/docker-s3cmd /bin/bash