File size: 793 Bytes
cef05a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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.

```bash
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.