vyos-documentation/docs/system/config-management.rst
Christian Poessinger 6aa3cbb611 Refactor "code-block:: sh" to "code-block:: console"
This will add proper new-lines into the rendered PDF. Before if it has
been a long line, not all content was preserved in the PDF.
2019-11-27 17:20:38 +01:00

33 lines
847 B
ReStructuredText

.. _config-management:
Config Management
-----------------
The following changes the number of commit revisions. In the default settings, 20 revisions are stored locally.
.. code-block:: console
set system config-management commit-revisions 50
| If you want to save all config changes to a remote destination. Set the commit-archive location. Every time a commit is successfully the config.boot file will be copied to the defined destinations.
.. code-block:: console
set system config-management commit-archive location 'tftp://10.0.0.2'
.. note:: the number of revisions don't effect the commit-archive:
A commit look now like this:
.. code-block:: console
vyos@vyos-R1# commit
Archiving config...
tftp://10.0.0.2 OK
[edit]
vyos@vyos-R1#
The filename has this format: config.boot-hostname.YYYYMMDD_HHMMSS