#!/usr/bin/bash
__doc__="
Manage data checked into IPFS
"

# To update the data

python -m shitspotter.ipfs add /home/joncrall/code/shitspotter/papers/application-2024/figures-submitted-2024-09-09 --name "shitspotter-figures-submitted-2024-09-09"
python -m shitspotter.ipfs add /home/joncrall/code/shitspotter/papers/application-2024/figures --name "shitspotter-figures"
python -m shitspotter.ipfs add /home/joncrall/code/shitspotter/papers/application-2024/plots --name "shitspotter-plots"

cat /home/joncrall/code/shitspotter/papers/application-2024/figures-submitted-2024-09-09.ipfs
cd /home/joncrall/code/shitspotter/papers/application-2024/
git add figures-submitted-2024-09-09.ipfs


python -m shitspotter.ipfs pull /home/joncrall/code/shitspotter/papers/application-2024/figures-submitted-2024-09-09.ipfs
python -m shitspotter.ipfs pull /home/joncrall/code/shitspotter/papers/application-2024/figures.ipfs

# Get the pin commands to ensure we host this
python -m shitspotter.ipfs pin add -n -- /home/joncrall/code/shitspotter/papers/application-2024/figures.ipfs
python -m shitspotter.ipfs pin add -n -- /home/joncrall/code/shitspotter/papers/application-2024/figures-submitted-2024-09-09.ipfs


ipfs pin add --name shitspotter-figures --progress --recursive bafybeib5xppxduoudgamopadsbcregoxg2siyktbltotn522etadigopwe
ipfs pin add --name shitspotter-figures-submitted-2024-09-09 --progress --recursive bafybeib5xppxduoudgamopadsbcregoxg2siyktbltotn522etadigopwe
ipfs pin add --name shitspotter-figures --progress --recursive bafybeibcho3molnx2fgbueeptwzk3kbvpcswkmbscwlkexpuwtaqkqo2ii
