summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2015-11-05 12:03:49 +0100
committerJiří Klimeš <jklimes@redhat.com>2015-11-18 09:37:44 +0100
commit0c65b289601d46edb0a950e291ddd376e368ccfd (patch)
tree1e230f71ca35f45f2daff456c63e8b2f824bb4de /man
parentf902444325944f324e8c9b37d6d00f2603b52547 (diff)
downloadNetworkManager-0c65b289601d46edb0a950e291ddd376e368ccfd.tar.gz
cli: add 'nmcli connection clone' for cloning connections (bgo #757627)
Synopsis: nmcli connection clone [--temporary] [id|uuid|path] <ID> <new name> It copies the <ID> connection as <new name>. The command is very useful if there is a connection, but another one is needed for a related configuration. One can copy the existing profile and modify it for the new situation. For example: $ nmcli con clone main-eth second-eth $ nmcli con modify second-eth connection.interface-name em4 https://bugzilla.gnome.org/show_bug.cgi?id=757627
Diffstat (limited to 'man')
-rw-r--r--man/nmcli.1.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/man/nmcli.1.in b/man/nmcli.1.in
index 1881310070..ed073248a4 100644
--- a/man/nmcli.1.in
+++ b/man/nmcli.1.in
@@ -739,6 +739,20 @@ The changes to the connection profile will be saved persistently by
NetworkManager, unless \fI--temporary\fP option is provided, in which case the
changes won't persist over NetworkManager restart.
.TP
+.B clone [--temporary] [ id | uuid | path ] <ID> <new name>
+.br
+Clone a connection. The connection to be cloned is identified by its
+name, UUID or D-Bus path. If <ID> is ambiguous, a keyword \fIid\fP,
+\fIuuid\fP or \fIpath\fP can be used. See \fBconnection show\fP above for
+the description of the <ID>-specifying keywords. \fI<new name>\fP is the name
+of the new cloned connection. The new connection will be the exact copy except
+the connection.id (\fI<new name>\fP) and connection.uuid (generated)
+properties.
+.br
+The new connection profile will be saved as persistent unless \fI--temporary\fP
+option is specified, in which case the new profile won't outlive NetworkManager
+restart.
+.TP
.B delete [ id | uuid | path ] <ID> ...
.br
Delete a configured connection. The connection to be deleted is identified by