.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "RRDDUMP 1" .TH RRDDUMP 1 "2019-05-30" "1.7.1" "rrdtool" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" rrddump \- dump the contents of an RRD to XML format .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBrrdtool\fR \fBdump\fR \fIfilename.rrd\fR [\fIfilename.xml\fR] [\fB\-\-header\fR|\fB\-h\fR {none,xsd,dtd}] [\fB\-\-no\-header\fR|\fB\-n\fR] [\fB\-\-daemon\fR|\fB\-d\fR \fIaddress\fR] [> \fIfilename.xml\fR] .SH "DESCRIPTION" .IX Header "DESCRIPTION" The \fBdump\fR function writes the contents of an \fB\s-1RRD\s0\fR in human readable (?) \s-1XML\s0 format to a file or to stdout. This format can be read by rrdrestore. Together they allow you to transfer your files from one computer architecture to another as well to manipulate the contents of an \fB\s-1RRD\s0\fR file in a somewhat more convenient manner. .IP "\fIfilename.rrd\fR" 8 .IX Item "filename.rrd" The name of the \fB\s-1RRD\s0\fR you want to dump. .IP "\fIfilename.xml\fR" 8 .IX Item "filename.xml" The (optional) filename that you want to write the \s-1XML\s0 output to. If not specified, the \s-1XML\s0 will be printed to stdout. .IP "\fB\-\-header\fR|\fB\-h\fR {none,xsd,dtd}" 8 .IX Item "--header|-h {none,xsd,dtd}" By default RRDtool will add a dtd header to the xml file. Here you can customize this to and xsd header or no header at all. .IP "\fB\-\-no\-header\fR|\fB\-n\fR" 8 .IX Item "--no-header|-n" A shortcut for \-\-header=none. .Sp If you want to restore the dump with RRDtool 1.2 you should use the \&\-\-no\-header option since 1.2 cannot deal with xml headers. .IP "\fB\-\-daemon\fR|\fB\-d\fR \fIaddress\fR" 8 .IX Item "--daemon|-d address" Address of the rrdcached daemon. If specified, a \f(CW\*(C`flush\*(C'\fR command is sent to the server before reading the \s-1RRD\s0 files. This allows \fBrrdtool\fR to return fresh data even if the daemon is configured to cache values for a long time. For a list of accepted formats, see the \fB\-l\fR option in the rrdcached manual. .Sp .Vb 1 \& rrdtool dump \-\-daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd .Ve .SH "EXAMPLES" .IX Header "EXAMPLES" To transfer an \s-1RRD\s0 between architectures, follow these steps: .IP "1." 4 On the same system where the \s-1RRD\s0 was created, use \fBrrdtool\fR \fBdump\fR to export the data to \s-1XML\s0 format. .IP "2." 4 Transfer the \s-1XML\s0 dump to the target system. .IP "3." 4 Run \fBrrdtool\fR \fBrestore\fR to create a new \s-1RRD\s0 from the \s-1XML\s0 dump. See \&\fBrrdrestore\fR for details. .SH "ENVIRONMENT VARIABLES" .IX Header "ENVIRONMENT VARIABLES" The following environment variables may be used to change the behavior of \&\f(CW\*(C`rrdtool dump\*(C'\fR: .IP "\fB\s-1RRDCACHED_ADDRESS\s0\fR" 4 .IX Item "RRDCACHED_ADDRESS" If this environment variable is set it will have the same effect as specifying the \f(CW\*(C`\-\-daemon\*(C'\fR option on the command line. If both are present, the command line argument takes precedence. .SH "AUTHOR" .IX Header "AUTHOR" Tobias Oetiker