3 rrddump - dump the contents of an RRD to XML format
7 B<rrdtool> B<dump> I<filename.rrd>
8 S<[B<--no-header>|B<-n>]>
9 S<[B<--daemon> I<address>]>
10 S<E<gt> I<filename.xml>>
14 B<rrdtool> B<dump> I<filename.rrd> I<filename.xml>
15 S<[B<--no-header>|B<-n>]>
16 S<[B<--daemon> I<address>]>
20 The B<dump> function writes the contents of an B<RRD> in human
21 readable (?) XML format to a file or to stdout. This format can
22 be read by rrdrestore. Together they allow you to transfer your
23 files from one computer architecture to another as well to
24 manipulate the contents of an B<RRD> file in a somewhat more
32 The name of the B<RRD> you want to dump.
36 The (optional) filename that you want to write the XML output to.
37 If not specified, the XML will be printed to stdout.
39 =item B<--no-header>|B<-n>
41 In rrdtool 1.3, the dump function started producing correct xml-headers.
42 Unfortunately the rrdtool restore function from the 1.2 series can not
43 handle these headers. With this option you can supress the creatinon of
46 =item B<--daemon> I<address>
48 Address of the L<rrdcached> daemon. If specified, a C<flush> command is sent
49 to the server before reading the RRD files. This allows B<rrdtool> to return
50 fresh data even if the daemon is configured to cache values for a long time.
51 For a list of accepted formats, see the B<-l> option in the L<rrdcached> manual.
53 rrdtool dump --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
59 To transfer an RRD between architectures, follow these steps:
65 On the same system where the RRD was created, use B<rrdtool> B<dump>
66 to export the data to XML format.
70 Transfer the XML dump to the target system.
74 Run B<rrdtool> B<restore> to create a new RRD from the XML dump. See
75 B<rrdrestore> for details.
79 =head1 ENVIRONMENT VARIABLES
81 The following environment variables may be used to change the behavior of
82 C<rrdtoolE<nbsp>dump>:
86 =item B<RRDCACHED_ADDRESS>
88 If this environment variable is set it will have the same effect as specifying
89 the C<--daemon> option on the command line. If both are present, the command
90 line argument takes precedence.
96 Tobias Oetiker E<lt>tobi@oetiker.chE<gt>