2021-06-09 09:53:35 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-03-30 15:54:56 +02:00
|
|
|
if [ -d influxdb ]; then
|
2021-09-06 11:07:18 +02:00
|
|
|
echo "Data already initialized!"
|
2021-09-19 07:30:55 +02:00
|
|
|
echo -n "Perform a fresh initialisation? [yes to proceed / no to exit] "
|
2021-09-06 11:07:18 +02:00
|
|
|
read -r answer
|
|
|
|
if [ "$answer" == "yes" ]; then
|
|
|
|
echo "Cleaning directories ..."
|
2021-09-19 07:30:55 +02:00
|
|
|
rm -rf job-archive
|
2021-09-06 11:07:18 +02:00
|
|
|
rm -rf influxdb/data/*
|
2021-09-13 13:20:43 +02:00
|
|
|
rm -rf sqldata/*
|
2021-09-06 11:07:18 +02:00
|
|
|
echo "done."
|
|
|
|
else
|
|
|
|
echo "Aborting ..."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2022-03-30 15:54:56 +02:00
|
|
|
# Download example job job-archive
|
2021-06-24 15:10:14 +02:00
|
|
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive.tar.xz
|
2021-06-25 08:50:20 +02:00
|
|
|
tar xJf job-archive.tar.xz
|
2021-06-24 15:10:14 +02:00
|
|
|
rm ./job-archive.tar.xz
|
2021-06-22 15:17:11 +02:00
|
|
|
|
2022-03-30 15:54:56 +02:00
|
|
|
# Download data for influxdb2
|
2021-09-13 08:59:06 +02:00
|
|
|
mkdir -p influxdb/data
|
|
|
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/influxdbv2-data.tar.xz
|
|
|
|
cd influxdb/data
|
|
|
|
tar xJf ../../influxdbv2-data.tar.xz
|
|
|
|
rm ../../influxdbv2-data.tar.xz
|
2021-11-29 10:29:56 +01:00
|
|
|
cd ../..
|
|
|
|
|
|
|
|
# Download checkpoint files for cc-metric-store
|
|
|
|
mkdir -p cc-metric-store/checkpoints
|
|
|
|
mkdir -p cc-metric-store/archive
|
|
|
|
cd cc-metric-store/checkpoints
|
2021-11-30 10:27:37 +01:00
|
|
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/cc-metric-store-checkpoints.tar.xz
|
|
|
|
tar xf cc-metric-store-checkpoints.tar.xz
|
|
|
|
rm cc-metric-store-checkpoints.tar.xz
|
2021-11-29 10:29:56 +01:00
|
|
|
cd ../..
|