1RRDDUMP(1) rrdtool RRDDUMP(1)
2
3
4
6 rrddump - dump the contents of an RRD to XML format
7
9 rrdtool dump filename.rrd [filename.xml] [--header|-h {none,xsd,dtd}]
10 [--no-header|-n] [--daemon|-d address] [> filename.xml]
11
13 The dump function writes the contents of an RRD in human readable (?)
14 XML format to a file or to stdout. This format can be read by
15 rrdrestore. Together they allow you to transfer your files from one
16 computer architecture to another as well to manipulate the contents of
17 an RRD file in a somewhat more convenient manner.
18
19 filename.rrd
20 The name of the RRD you want to dump.
21
22 filename.xml
23 The (optional) filename that you want to write the XML output
24 to. If not specified, the XML will be printed to stdout.
25
26 --header|-h {none,xsd,dtd}
27 By default RRDtool will add a dtd header to the xml file. Here
28 you can customize this to and xsd header or no header at all.
29
30 --no-header|-n
31 A shortcut for --header=none.
32
33 If you want to restore the dump with RRDtool 1.2 you should use
34 the --no-header option since 1.2 cannot deal with xml headers.
35
36 --daemon|-d address
37 Address of the rrdcached daemon. If specified, a "flush"
38 command is sent to the server before reading the RRD files.
39 This allows rrdtool to return fresh data even if the daemon is
40 configured to cache values for a long time. For a list of
41 accepted formats, see the -l option in the rrdcached manual.
42
43 rrdtool dump --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
44
46 To transfer an RRD between architectures, follow these steps:
47
48 1. On the same system where the RRD was created, use rrdtool dump to
49 export the data to XML format.
50
51 2. Transfer the XML dump to the target system.
52
53 3. Run rrdtool restore to create a new RRD from the XML dump. See
54 rrdrestore for details.
55
57 The following environment variables may be used to change the behavior
58 of "rrdtool dump":
59
60 RRDCACHED_ADDRESS
61 If this environment variable is set it will have the same effect as
62 specifying the "--daemon" option on the command line. If both are
63 present, the command line argument takes precedence.
64
66 Tobias Oetiker <tobi@oetiker.ch>
67
68
69
701.8.0 2022-03-14 RRDDUMP(1)