CRICKET / code /docs /minio_setup.md
d9993r's picture
Add files using upload-large-folder tool
cef05a0 verified
|
Raw History Blame Contribute Delete
793 Bytes

Object storage with MinIO (standard section 11.2)

MinIO is a free S3-compatible server you can run on the lab machine or a second PC.

mkdir -p ~/minio-data
docker run -d -p 9000:9000 -p 9001:9001 -v ~/minio-data:/data \
  -e MINIO_ROOT_USER=foundry -e MINIO_ROOT_PASSWORD='change-this-password' \
  quay.io/minio/minio server /data --console-address ":9001"
pip install boto3
export AWS_ACCESS_KEY_ID=foundry AWS_SECRET_ACCESS_KEY='change-this-password'
python code/backup.py --s3 http://127.0.0.1:9000 --bucket cricket-data-foundry

Every file is stored with its sha256 in the object metadata, and unchanged files are skipped. Keep a second, physically separate copy too: python code/backup.py --to /media/usb/cricket_backup, then --verify before deleting anything local.