Set of rrd conversion scripts

As the website and scripts linked in FAQ - LibreNMS Docs are gone and the scripts are not archived by archive.org, I had to write new ones for my amd64 to aarch64 migration. Thought one over here might be interested so here they are:

#!/bin/sh
#convert_rrd_xml.sh INPUTDIR OUTPUTDIR

INDIR=$1
OUTDIR=$(realpath $2)

cd $INDIR
for file in $(find . -name "*.rrd");
do
    path=$(dirname $file)
    mkdir -p $OUTDIR/$path
    echo "converting $file ..."
    rrdtool dump $file $OUTDIR/$path/$(basename $file .rrd).xml
done
cd -
#!/bin/sh
#convert_xml_rrd.sh INPUTDIR OUTPUTDIR

INDIR=$1
OUTDIR=$(realpath $2)

cd $INDIR
for file in $(find . -name "*.xml");
do
    path=$(dirname $file)
    mkdir -p $OUTDIR/$path
    echo "converting $file ..."
    rrdtool restore $file $OUTDIR/$path/$(basename $file .xml).rrd
done
cd -

have been working fine during my migration.

cheers!

Hi,

Very good!
It would be nice to make a pull request for the script to the ./scripts/ folder or another repository, and update the documentation.