quote:
When you want to copy/move from one platform to another, you can use
"rrdtool dump" to convert them to a portable XML format, then "rrdtool
restore" to restore them to a binary format appropriate for the
localhost.
berikut scriptnya
#!/bin/bash
BASE=/home/sedot/mirror-size/
for i in `ls $BASE -all | grep .rrd | sed -e "s/.rrd/ /g" | cut -b 47-80`;
do /usr/bin/rrdtool dump $BASE/$i.rrd > $BASE/$i.xml
/bin/rm $BASE/$i.rrd
/usr/bin/rrdtool restore -r -f $BASE/$i.xml $BASE/$i.rrd
done
exit 0
fix dengan panduan ini http:// net.doit. wisc.edu/ ~plonka/ list/flowscan/ archive/ 1448.html
quote:
When you want to copy/move from one platform to another, you can use
"rrdtool dump" to convert them to a portable XML format, then "rrdtool
restore" to restore them to a binary format appropriate for the
localhost.
berikut scriptnya
#!/bin/bash
BASE=/home/ sedot/mirror- size/
for i in `ls $BASE -all | grep .rrd | sed -e "s/.rrd/ /g" | cut -b 47-80`;
/usr/bin/ rrdtool dump $BASE/$i.rrd > $BASE/$i.xml
do
/bin/rm $BASE/$i.rrd
/usr/bin/rrdtool restore -r -f $BASE/$i.xml $BASE/$i.rrd
done
exit 0