Comment 1 for bug 320593

Revision history for this message
Mahyuddin Susanto (udienz) wrote :

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`;
        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