[rrd-users] Re: Converting rrd files from one system to another

2005-01-20 Thread Serge Maandag
 in it.   I was hoping I could write a simple shell loop to dump 
 everything:
 for x in `ls *.rrd`
 do
 rrdtool xport ${x}  ${x}_xport
 done

Wouldn't it be much easier to use rrdtool dump and rrdtool restore?

Serge.

-
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud 
van de volgende disclaimer van toepassing: 
http://www.zeelandnet.nl/disclaimer.php

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Converting rrd files from one system to another

2005-01-20 Thread Andreas Maus
On Thu, Jan 20, 2005 at 08:04:56AM -0500, James B Horwath wrote:
Hi James.
 for x in `ls *.rrd`
 do
 rrdtool xport ${x}  ${x}_xport
---^
xport ??? Thats wrong.
The name (and description in the man page) is a little bit misleading
(rrdxport - Export data in XML format based on data from one or several RRD)

You should use rrdtool dump and rrdtool restore to convert databases.

rrddump - dump the contents of an RRD to XML format
rrdrestore - restore the contents of an RRD from its XML dump format

So you should run:

rrdtool dump rrd_on_old_host.rrd  rrd_on_old_host_dumped.xml

and restore them on the new host via:

rrdtool restore rrd_on_old_host_dumped.xml rrd_on_new_host.rrd

Easy, isn't it? ;)

Hope that helps,

Andreas.

-- 
Dipl.-Ing. Andreas Maus science+computing ag
System Administration   Hagellocher Weg 71-75
mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
tel.: +49 7071 9457 456 www.science-computing.de

-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Converting rrd files from one system to another

2005-01-20 Thread James B Horwath
Thanks everyone, this is just what I needed.
Regards,
Jim

Jim Horwath
GCUX






Andreas Maus [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
01/20/2005 08:33 AM



 
To: James B Horwath [EMAIL PROTECTED]
cc: rrd-users@list.ee.ethz.ch
Subject:[rrd-users] Re: Converting rrd files from one system to 
another


On Thu, Jan 20, 2005 at 08:04:56AM -0500, James B Horwath wrote:
Hi James.
 for x in `ls *.rrd`
 do
 rrdtool xport ${x}  ${x}_xport
---^
xport ??? Thats wrong.
The name (and description in the man page) is a little bit misleading
(rrdxport - Export data in XML format based on data from one or several 
RRD)

You should use rrdtool dump and rrdtool restore to convert databases.

rrddump - dump the contents of an RRD to XML format
rrdrestore - restore the contents of an RRD from its XML dump format

So you should run:

rrdtool dump rrd_on_old_host.rrd  rrd_on_old_host_dumped.xml

and restore them on the new host via:

rrdtool restore rrd_on_old_host_dumped.xml rrd_on_new_host.rrd

Easy, isn't it? ;)

Hope that helps,

Andreas.

-- 
Dipl.-Ing. Andreas Maus science+computing ag
System Administration   Hagellocher Weg 71-75
mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
tel.: +49 7071 9457 456 www.science-computing.de

-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi





-
This message, and any attachments to it, may contain information that is
privileged, confidential, and exempt from disclosure under applicable law.
If the reader of this message is not the intended recipient, you are
notified that any use, dissemination, distribution, copying, or
communication of this message is strictly prohibited.  If you have received
this message in error, please notify the sender immediately by return
e-mail and delete the message and any attachments.  Thank you.


--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi