Little command line tool to sync a local folder to an S3 bucket. The bucket is created if it does not exist.
First, create a Python virtual environment and install the required dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Start the MinIO container:
docker compose up -d
Then:
s3sync <folder_path> <bucket_name>
Change the values of the API_ENDPOINT
, API_KEY
and API_SECRET
variables in the .env
file to reflect your configuration, and use like previously:
s3sync <folder_path> <bucket_name>