From 8cc5276715ef5b52418b52532ebb8fa89b310056 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 15 Dec 2019 13:21:38 +0100 Subject: config-management: restructure to the new cfgcmd/opcmd style (cherry picked from commit eea005b2e4308e537c8c97a6bd43338676187d36) --- docs/system/config-management.rst | 43 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'docs') diff --git a/docs/system/config-management.rst b/docs/system/config-management.rst index 34f969e5..b8c1d309 100644 --- a/docs/system/config-management.rst +++ b/docs/system/config-management.rst @@ -1,33 +1,32 @@ .. _config-management: -Config Management ------------------ +######################## +Configuration Management +######################## +VyOS comes with an integrated versioning system for the system configuration. +The configurations are versioned locally for rollback but they can also be +stored on a remote host for archiving/backup reasons. -The following changes the number of commit revisions. In the default settings, 20 revisions are stored locally. +.. cfgcmd:: set system config-management commit-revisions -.. code-block:: none +Change the number of commit revisions to ``, the default setting for +this value is to store 20 revisions locally. - set system config-management commit-revisions 50 +.. cfgcmd:: set system config-management commit-archive location '' -| 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. +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 destination(s). The filename used on the +remote host used will be: ``config.boot-hostname.YYYYMMDD_HHMMSS`` +Destinations will be configured as any of the below :abbr:`URI (Uniform +Resource Identifier)` -.. code-block:: none +* ``scp://:@/`` +* ``sftp://:@/`` +* ``ftp://:@/`` +* ``tftp:///`` - 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:: none - - 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 \ No newline at end of file +.. note:: The number of revisions don't effect the commit-archive. \ No newline at end of file -- cgit v1.2.3