To use git-annex with NCI’s mdss tape storage system, one can use the following git annex hook configuration. Place this in .git/config

[annex]
    uuid = <SOME UUID, DON'T CHANGE THIS>
    mdss-store-hook = (mdss put $ANNEX_FILE ga/tmp$ANNEX_KEY && mdss mv ga/tmp$ANNEX_KEY  ga/$ANNEX_KEY ) || (mdss rm ga/$ANNEX_KEY && false)                                                                                                                                         
    mdss-retrieve-hook = mdss get ga/$ANNEX_KEY $ANNEX_FILE
    mdss-checkpresent-hook = mdss dmls ga/$ANNEX_KEY 2>/dev/null && echo "$ANNEX_KEY" || true
    mdss-remove-hook = mdss rm ga/$ANNEX_KEY

And then one can initialise an mdss remote with git annex initremote mdss type=hook encryption=none hooktype=mdss.