You are here: Home / Help / FAQ / HPSS

HPSS

Show or Hide answer How can I get information about my project's data in the tape archive?

A list of all files is located in  your project's home directory  /hpss/arch/<prj>. To get an overview of your project's quota and consumption of space  in HPSS tape archive  use our  DKRZ online services.

Show or Hide answer How can I use the HPSS tape archive without typing my password every time, e.g. in scripts or jobs?

Create a file called .netrc in your HOME directory, which has only read and write permissions for yourself:

mlogin100$ ls -la $HOME/.netrc
-rw------- ..... /home/dkrz/<uid>/.netrc
mlogin100$ cat $HOME/.netrc
machine tape.dkrz.de login <uid> password <password>
machine lhp.dkrz.de  login <uid> password <password>

Be aware that special characters like "/ "or "," should be escaped with a backslash or quoted, e.g.

machine tape.dkrz.de login u123456 password Null\,nix
machine tape.dkrz.de login u123456 password "Null,nix"

In some configurations an adaption might be necessary. So, if this doesn't work for you,
please contact 

Show or Hide answer How can I use HPSS archive in scripts/jobs?

Assumed you've got a ~/.netrc file you can use pftp in scripts as follows:

#!/bin/bash
export DATA_DIR=/hpss/arch/<prj>/<mydir>
echo "DATA_DIR=  $DATA_DIR"
export filename=test.txt
#
pftp <<ENDE
cd $DATA_DIR
bin
dir
get $filename
quit
ENDE
#

Document Actions