diff --git a/doc.zih.tu-dresden.de/docs/data_transfer/export_nodes.md b/doc.zih.tu-dresden.de/docs/data_transfer/export_nodes.md index 80ea758c57b09601cadd001aa018c56a2f219a3f..71ca41949f44d558c2ca3384d7651e9e85b19125 100644 --- a/doc.zih.tu-dresden.de/docs/data_transfer/export_nodes.md +++ b/doc.zih.tu-dresden.de/docs/data_transfer/export_nodes.md @@ -9,9 +9,13 @@ that you cannot log in via SSH to the export nodes, but only use `scp`, `rsync` The export nodes are reachable under the hostname `taurusexport.hrsk.tu-dresden.de` (or `taurusexport3.hrsk.tu-dresden.de` and `taurusexport4.hrsk.tu-dresden.de`). +Please keep in mind that there are different +[filesystems](../data_lifecycle/file_systems.md#recommendations-for-filesystem-usage). Choose the +one that matches your needs. + ## Access From Linux -There are at least three tool to exchange data between your local workstation and ZIH systems. All +There are at least three tools to exchange data between your local workstation and ZIH systems. They are explained in the following section in more detail. !!! important @@ -33,13 +37,27 @@ in a directory, the option `-r` has to be specified. marie@local$ scp -r <directory> taurusexport:<target-location> ``` -??? example "Example: Copy a file from ZIH systems to your workstation" + For example, if you want to copy your data file `mydata.csv` to the directory `input` in your + home directory, you would use the following: ```console - marie@login$ scp taurusexport:<file> <target-location> + marie@local$ scp mydata.csv taurusexport:input/ + ``` + +??? example "Example: Copy a file from ZIH systems to your workstation" + + ```bash + marie@local$ scp taurusexport:<file> <target-location> # Add -r to copy whole directory - marie@login$ scp -r taurusexport:<directory> <target-location> + marie@local$ scp -r taurusexport:<directory> <target-location> + ``` + + For example, if you have a directory named `output` in your home directory on ZIH systems and + you want to copy it to the directory `/tmp` on your workstation, you would use the following: + + ```console + marie@local$ scp -r taurusexport:output /tmp ``` ### SFTP diff --git a/doc.zih.tu-dresden.de/util/check-empty-page.sh b/doc.zih.tu-dresden.de/util/check-empty-page.sh new file mode 100755 index 0000000000000000000000000000000000000000..7c4fdc2cd07b167b39b0b0ece58e199df0df6d84 --- /dev/null +++ b/doc.zih.tu-dresden.de/util/check-empty-page.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -euo pipefail + +scriptpath=${BASH_SOURCE[0]} +basedir=`dirname "$scriptpath"` +basedir=`dirname "$basedir"` + +if find $basedir -name \*.md -exec wc -l {} \; | grep '^0 '; then + exit 1 +fi diff --git a/doc.zih.tu-dresden.de/util/pre-commit b/doc.zih.tu-dresden.de/util/pre-commit index eb63bbea24052eb1dff4ec16a17b8b5aba275e18..1cc901e00efbece94209bfa6c4bbbc54aad682e9 100755 --- a/doc.zih.tu-dresden.de/util/pre-commit +++ b/doc.zih.tu-dresden.de/util/pre-commit @@ -75,6 +75,13 @@ then exit_ok=no fi +echo "Looking for empty files..." +docker run --name=hpc-compendium --rm -w /docs --mount src="$(pwd)",target=/docs,type=bind hpc-compendium ./doc.zih.tu-dresden.de/util/check-empty-page.sh +if [ $? -ne 0 ] +then + exit_ok=no +fi + if [ $exit_ok == yes ] then exit 0