rrddump - dump the contents of an RRD to XML format
rrdtool dump filename.rrd [filename.xml] [--header|-h {none,xsd,dtd}] [--no-header] [--daemon address] > filename.xml
The dump function writes the contents of an RRD in human readable (?) XML 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 RRD file in a somewhat more convenient manner.
If you want to restore the dump with rrdtool 1.2 you should use the --no-header option since 1.2 can not deal with xml headers.
flush
command is sent
to the server before reading the RRD files. This allows rrdtool 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 -l option in the the rrdcached manpage manual.
rrdtool dump --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
To transfer an RRD between architectures, follow these steps:
The following environment variables may be used to change the behavior of
rrdtooldump
:
--daemon
option on the command line. If both are present, the command
line argument takes precedence.
Tobias Oetiker <tobi@oetiker.ch>