TORRUS_CONFIGSNAPSHOT(8) | torrus | TORRUS_CONFIGSNAPSHOT(8) |
configsnapshot - Generates a configuration snapshot for a Torrus tree.
torrus configsnapshot --tree=TREENAME [options...]
This command generates a configuration snapshot from current datasources for tree TREENAME. The output is an XML file, ready for compilation, representing all datasources, monitors and tokensets of a given tree. The snapshot does not include view definitions. Templates and file patterns are expanded inside the file. It does not require any other XML configuration files, except for defaults.xml and your custom view definitions.
Warning: "configsnapshot" from RRFW release 0.1.5 will not work correctly with databases from previous releases. Use RRFW release "0.1.4bf2" instead. "configsnapshot" utility from RRFW release 0.1.4bf2 does not preserve aliases.
This utility is useful in Torrus upgrade process. In case when RRD files structure is changing in Torrus default templates, and user(s) demand to preserve the historical data, the following steps could be done:
torrus configsnapshot --tree=myrouters \ --out=/etc/torrus/xmlconfig/myrouters-snapshot.xml
See more documentation at Torrus home page: http://torrus.org
Stanislav Sinyagin <ssinyagin@k-open.com>
2023-05-02 | torrus 3.00 |