copy running-config https

Last Updated : Jul 12, 2021 |

Uploads the current configuration to a file using an HTTP or HTTPS server. If a URL with a username (for example, username@host) is used with the command, the HTTP command prompts for the password. Here, the password can be blank. Uncommitted changes to the configuration are included.

Note:

After you change the configuration, run the copy running-config startup-config command to save the changes. If you do not save the changes, the device loses them when you reset.

Syntax

copy running-config https <URL> [transfer-type]

Parameters

Parameter

Description

Possible Values

Default Value

URL

The URL contains the following elements in order:

  • http://or https://

  • username (optional) followed by @

  • webserver host:- IPv4 address, IPv6 address, or Fully Qualified Domain Name of the remote HTTP or HTTPS server

  • :webserver port (optional)

  • /file path

  • path

  • filename

https://

transfer-type

The transfer type depending on the type of verification. The options are:

  • secure: verifies the certificate and hostname, applicable for https

  • certificate: verifies the webserver TLS certificate, applicable for https

  • unsecure: no TLS certificate verification required

  • secure

  • certificate

  • unsecure

  • secure for https

  • unsecure for http

User level

read-write

Context

general

Example

To upload the current configuration on the HTTP or HTTPS server:

g4xx-023# copy running-config https user@my.example.com/mg-1.cfg
Enter WebServer password:
g4xx-023# copy running-config https https://my.example.com/mg-1.cfg
g4xx-023# copy running-config https https://[2001:db8::c0a8:310a]:443/mg-1.cfg