"rrdtool dump" to convert them to a portable XML format, then "rrdtool
restore" to restore them to a binary format appropriate for the
localhost.
See "man rrddump" and "man rrdrestore" for details.
- Code: Select all
for i in *.rrd; do rrdtool dump $i > `basename $i .rrd`.xml; done
for i in *.xml; do rrdtool restore $i `basename $i .xml`.rrd;done
or use find if you have RRDs in subdirecties:
- Code: Select all
find . -name *.rrd -exec rrdtool dump {} >`basename {} .rrd`.xml \;
You can find current version of rrdtool installed on the cPanel server with the help of the following command:
- Code: Select all
/usr/local/cpanel/3rdparty/bin/rrdtool -v