No - seems it can't overwrite on the exiting rrd file. So you still need two commands:
rrdtool dump db.rrd | sed 's/oldvalue/newvalue/' \ | rrdtool restore - tmp.rrd; mv tmp.rrd db.rrd The hyphen is neat though (not in manpage) - thanks a lot! :) On Thu, 1 Apr 2004, Serge Maandag wrote: > > Thanks a lot Miguel. That worked great. Here's what I ran: > > > > rrdtool dump db.rrd > db.xml > > sed 's/oldvalue/newvalue' db.xml >tmp; mv tmp db.xml rrdtool > > restore db.xml db.rrd > > FYI.. > You can even shorten that to: > rrdtool dump db.rrd | sed 's/oldvalue/newvalue/' | rrdtool restore - > db.rrd > > Serge. -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
