Code

Imported upstream version 1.4.8
[pkg-rrdtool.git] / doc / rrddump.txt
1 RRDDUMP(1)                          rrdtool                         RRDDUMP(1)
5 N\bNA\bAM\bME\bE
6        rrddump - dump the contents of an RRD to XML format
8 S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
9        r\brr\brd\bdt\bto\boo\bol\bl d\bdu\bum\bmp\bp _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be_\b._\br_\br_\bd [_\bf_\bi_\bl_\be_\bn_\ba_\bm_\be_\b._\bx_\bm_\bl] [-\b--\b-h\bhe\bea\bad\bde\ber\br|-\b-h\bh {none,xsd,dtd}]
10        [-\b--\b-n\bno\bo-\b-h\bhe\bea\bad\bde\ber\br] [-\b--\b-d\bda\bae\bem\bmo\bon\bn _\ba_\bd_\bd_\br_\be_\bs_\bs] > _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be_\b._\bx_\bm_\bl
12 D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
13        The d\bdu\bum\bmp\bp function writes the contents of an R\bRR\bRD\bD 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 R\bRR\bRD\bD file in a somewhat more convenient manner.
19        _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be_\b._\br_\br_\bd
20                The name of the R\bRR\bRD\bD you want to dump.
22        _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be_\b._\bx_\bm_\bl
23                The (optional) filename that you want to write the XML output
24                to.  If not specified, the XML will be printed to stdout.
26        -\b--\b-h\bhe\bea\bad\bde\ber\br|-\b-h\bh {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.
30        -\b--\b-n\bno\bo-\b-h\bhe\bea\bad\bde\ber\br
31                A shortcut for --header=none.
33                If you want to restore the dump with RRDtool 1.2 you should use
34                the --no-header option since 1.2 can not deal with xml headers.
36        -\b--\b-d\bda\bae\bem\bmo\bon\bn _\ba_\bd_\bd_\br_\be_\bs_\bs
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 r\brr\brd\bdt\bto\boo\bol\bl 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 -\b-l\bl option in the rrdcached manual.
43                 rrdtool dump --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
45 E\bEX\bXA\bAM\bMP\bPL\bLE\bES\bS
46        To transfer an RRD between architectures, follow these steps:
48        1.  On the same system where the RRD was created, use r\brr\brd\bdt\bto\boo\bol\bl d\bdu\bum\bmp\bp to
49            export the data to XML format.
51        2.  Transfer the XML dump to the target system.
53        3.  Run r\brr\brd\bdt\bto\boo\bol\bl r\bre\bes\bst\bto\bor\bre\be to create a new RRD from the XML dump. See
54            r\brr\brd\bdr\bre\bes\bst\bto\bor\bre\be for details.
56 E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT V\bVA\bAR\bRI\bIA\bAB\bBL\bLE\bES\bS
57        The following environment variables may be used to change the behavior
58        of "rrdtool dump":
60        R\bRR\bRD\bDC\bCA\bAC\bCH\bHE\bED\bD_\b_A\bAD\bDD\bDR\bRE\bES\bSS\bS
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.
65 A\bAU\bUT\bTH\bHO\bOR\bR
66        Tobias Oetiker <tobi@oetiker.ch>
70 1.4.8                             2013-05-23                        RRDDUMP(1)