added --no-header to documentation and fixed implementation
[rrdtool.git] / doc / rrddump.pod
1 =head1 NAME
2
3 rrddump - dump the contents of an RRD to XML format
4
5 =head1 SYNOPSIS
6
7 B<rrdtool> B<dump> S<[B<--no-header>|B<-n>]> I<filename.rrd> E<gt> I<filename.xml>
8
9 or 
10
11 B<rrdtool> B<dump> S<[B<--no-header>|B<-n>]> I<filename.rrd> I<filename.xml>
12
13 =head1 DESCRIPTION
14
15 The B<dump> function writes the contents of an B<RRD> in human
16 readable (?) XML format to a file or to stdout. This format can
17 be read by rrdrestore. Together they allow you to transfer your
18 files from one computer architecture to another as well to
19 manipulate the contents of an B<RRD> file in a somewhat more
20 convenient manner.
21
22
23 =over 8
24
25 =item I<filename.rrd>
26
27 The name of the B<RRD> you want to dump.
28
29 =item I<filename.xml>
30
31 The (optional) filename that you want to write the XML output to.
32 If not specified, the XML will be printed to stdout.
33
34 =item S<[B<--no-header>|B<-n>]>
35
36 In rrdtool 1.3, the dump function started producing correct xml-headers.
37 Unfortunately the rrdtool restore function from the 1.2 series can not
38 handle these headers. With this option you can supress the creatinon of
39 the xml headers.
40
41 =back
42
43 =head1 EXAMPLES
44
45 To transfer an RRD between architectures, follow these steps:
46
47 =over 4
48
49 =item 1.
50
51 On the same system where the RRD was created, use B<rrdtool> B<dump>
52 to export the data to XML format.
53
54 =item 2.
55
56 Transfer the XML dump to the target system.
57
58 =item 3.
59
60 Run B<rrdtool> B<restore> to create a new RRD from the XML dump. See
61 B<rrdrestore> for details.
62
63 =back
64
65 =head1 AUTHOR
66
67 Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
68