b2un0 / docker-s3cmd

docker s3cmd wrapper

Repository from Github https://github.comb2un0/docker-s3cmdRepository from Github https://github.comb2un0/docker-s3cmd

docker s3cmd wrapper

simple docker container to run (scheduled) s3cmd

Note: you must create your .s3cfg first!

one shot example

docker run -it --rm -v ${PWD}/.s3cfg:/root/.s3cfg ghcr.io/b2un0/docker-s3cmd s3cmd ls

scheduled example

docker-compose.yaml

services:
  something:
    image: ghcr.io/b2un0/docker-s3cmd:latest
    restart: unless-stopped
    network_mode: bridge
    # command: "s3cmd ls" # for one shot
    volumes:
      - ./root/.s3cfg:/root/.s3cfg:ro
    environment:
      SCHEDULE: "15 3 * * *" # https://crontab.guru/
      CRON_CMD: "s3cmd sync --dry-run /sync s3://some-bucket"

About

docker s3cmd wrapper

License:MIT License


Languages

Language:Dockerfile 51.8%Language:Shell 48.2%