Background
RRD's are architecture dependent. as such, a simple copy of the files to another machine may not work. it is therefore necessary to use rrdtool dump and restore in order to port rrds over to a new architecture.
For the netflow monitoring of terapaths, a simple batch script has been created to automate this proceedure.
Usage
On the source machine, run
$ cd /var/flows/reports/rrds $ perl convertrrd-batch-create.pl *
This will create the representative xml file for each and every rrd.
Then copy/replicate the xml files to the destination machine:
$ rsync -avz --exclude '*.rrd' /var/flows/reports/rrds/ <DEST>:/var/flows/reports/rrds/
This will copy all xml files to the destination machine.
And finally on the destination machine, run:
perl convertrrd-batch-store.pl *