Migrating rrd database between different architecture

Tech Notes
 Santanu Misra / October 11, 2005
111 words ; 1 minute read

This script you run on the source host from the same directory where all those rrd files are there. I found this very helpful while migrating between Linux and Solaris.

#/bin/csh



set all_files=`echo *.rrd`

echo $all_files

foreach file ( $all_files )

set base = `basename $file .rrd`

/bin/rrdtool dump $file > /tmp/new1/$base.xml

end

The do a `tar` with `gzip` as that will save lots of space and time while transferring data between machines.

And on the destination machine you uncompress and untar the file to an empty directory.

#/bin/csh



set all_files=`echo *.xml`

echo $all_files

foreach file ($all_files)

set base = `basename $file .xml`

/opt/local/bin/rrdtool restore $file /opt/local/htdocs/cacti/rra/$base.rrd

end

Hope this helps.

comments powered by Disqus

Related Blog Posts

Happy Holidays
Happy Holidays

**Wish you all happy & prosperous New Year.**Its time to write almost last entry for this year. For quite a while was thinking to write about 2005 year diary. Hmm…………not able to write with this dull and grey sky and no need to mention the cold at Paris but wait………… seems some ray of light is trying to reach my desk which I do not want to loose, hope that

Thank God its Friday
Thank God its Friday

It has been a while I wrote any post. Well, after quite a long time I met with Tapas a good old friend from Bay Area. The meeting was short while having dinner at our place; got some updates on other friends in Bay Area. Yesterday, was last French class before 2 week vacations so we went out for drinks after the class. I never had this kind of social events where you have to speak in French and you are not ashamed of your mistakes.

Metro in Paris
Metro in Paris

Living in Paris and not travelling in Metro has lots of demerits. Like usual I am going to start with the traffic jams, one way roads, unavailability of parking, high parking tickets and very unusual sense of Parisian driving skills. These only list if you have a car and travelling of your own. But what about those who are taking other mode of smart transports like Bus, Tram, Bicycle, Rollerblade or just walk to work or work from home?