summaryrefslogtreecommitdiff
path: root/docs/cli.rst
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-22 22:18:09 +0200
committerChristian Breunig <christian@breunig.cc>2024-05-22 22:18:50 +0200
commitd2002c292af2692997073514bdb60d4371df3058 (patch)
tree151e3847ce3022e8794015a1b8ad0ceb86a97da1 /docs/cli.rst
parent13415c1702ba90eea3decd6faa5713913568fc59 (diff)
downloadvyos-documentation-d2002c292af2692997073514bdb60d4371df3058.tar.gz
vyos-documentation-d2002c292af2692997073514bdb60d4371df3058.zip
cli: commit-archive with git does not make use of source-address CLI optionarchive
(cherry picked from commit d9fef261e770cb45d5f02ae5e448590c7f6fead1)
Diffstat (limited to 'docs/cli.rst')
-rw-r--r--docs/cli.rst44
1 files changed, 28 insertions, 16 deletions
diff --git a/docs/cli.rst b/docs/cli.rst
index 55ec2be0..c1a9d14c 100644
--- a/docs/cli.rst
+++ b/docs/cli.rst
@@ -369,7 +369,7 @@ command.
You are now in a sublevel relative to ``interfaces ethernet eth0``, all
commands executed from this point on are relative to this sublevel. Use
-eithe the :cfgcmd:`top` or :cfgcmd:`exit` command to go back to the top
+either the :cfgcmd:`top` or :cfgcmd:`exit` command to go back to the top
of the hierarchy. You can also use the :cfgcmd:`up` command to move only
one level up at a time.
@@ -410,7 +410,7 @@ working configuration indicating line changes with ``+`` for additions,
loopback lo {
}
-It is also possible to display all `set` commands within configuration
+It is also possible to display all :cfgcmd:`set` commands within configuration
mode using :cfgcmd:`show | commands`
.. code-block:: none
@@ -501,6 +501,9 @@ different levels in the hierarchy.
Warning: configuration changes have not been saved.
vyos@vyos:~$
+.. hint:: You can specify a commit message with
+ :cfgcmd:`commit comment <message>`.
+
.. _save:
.. cfgcmd:: save
@@ -854,28 +857,37 @@ to :cfgcmd:`commit`. You will have to set the commit-archive location.
TFTP, FTP, SCP and SFTP servers are supported. Every time a
:cfgcmd:`commit` is successful the ``config.boot`` file will be copied
to the defined destination(s). The filename used on the remote host will
-be ``config.boot-hostname.YYYYMMDD_HHMMSS``.
+be ``config.boot-hostname.YYYYMMDD_HHMMSS``.
.. cfgcmd:: set system config-management commit-archive location <URI>
- Specify remote location of commit archive as any of the below
- :abbr:`URI (Uniform Resource Identifier)`
+ Specify remote location of commit archive as any of the below
+ :abbr:`URI (Uniform Resource Identifier)`
- * ``scp://<user>:<passwd>@<host>:/<dir>``
- * ``sftp://<user>:<passwd>@<host>/<dir>``
- * ``ftp://<user>:<passwd>@<host>/<dir>``
- * ``tftp://<host>/<dir>``
+ * ``http://<user>:<passwd>@<host>:/<dir>``
+ * ``https://<user>:<passwd>@<host>:/<dir>``
+ * ``ftp://<user>:<passwd>@<host>/<dir>``
+ * ``sftp://<user>:<passwd>@<host>/<dir>``
+ * ``scp://<user>:<passwd>@<host>:/<dir>``
+ * ``tftp://<host>/<dir>``
+ * ``git+https://<user>:<passwd>@<host>/<path>``
-.. note:: The number of revisions don't affect the commit-archive.
+ Since username and password are part of the URI, they need to be
+ properly url encoded if containing special characters.
-.. note:: You may find VyOS not allowing the secure connection because
- it cannot verify the legitimacy of the remote server. You can use
- the workaround below to quickly add the remote host's SSH
- fingerprint to your ``~/.ssh/known_hosts`` file:
+ .. note:: The number of revisions don't affect the commit-archive.
- .. code-block:: none
+ .. note:: When using Git as destination for the commit archive the
+ ``source-address`` CLI option has no effect.
+
+ .. note:: You may find VyOS not allowing the secure connection because
+ it cannot verify the legitimacy of the remote server. You can use
+ the workaround below to quickly add the remote host's SSH
+ fingerprint to your ``~/.ssh/known_hosts`` file:
+
+ .. code-block:: none
- vyos@vyos# ssh-keyscan <host> >> ~/.ssh/known_hosts
+ vyos@vyos# ssh-keyscan <host> >> ~/.ssh/known_hosts
Saving and loading manually
---------------------------