cuu508 / sammie

Sammie synchronizes contents of a S3 bucket to the local filesystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sammie

A happy samoyed fetching a stick

Sammie synchronizes contents of a S3 bucket to the local filesystem. It expects all keys in the bucket to follow a specific pattern:

/{directoryname}/{objectname}

Build a static binary:

CGO_ENABLED=0 go build

Use:

export ENDPOINT=s3.sbg.perf.cloud.ovh.net
export REGION=sbg
export ACCESS_KEY=fixme
export SECRET_KEY=fixme
export BUCKET=bucket-name
export DST=/target/directory/
./sammie

About

Sammie synchronizes contents of a S3 bucket to the local filesystem

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%