Files
vms/cache-restore.sh
T

7 lines
203 B
Bash
Raw Normal View History

2024-06-21 16:24:37 -05:00
#!/usr/bin/env bash
2024-06-21 16:23:24 -05:00
mc alias set storage "$STORAGE_URL" root "$MINIO_SECRET"
for f in $(mc ls --json storage/isos/cache | jq '.key' | tr -d '"'); do
mc get -q "storage/isos/cache/$f" "./cache/$f"
done