copy startup-config https

Last Updated : Jul 12, 2021 |

Uploads the current configuration to a file using HTTP or HTTPS server. If an 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 not 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 startup-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 to https://myexample.com/mg-1.cgf on the HTTPS server at IP address:

Gxxx-001(super)# copy startup-config https https://myexample.com/mg-1.cfg

To upload the current configuration on the HTTPS server at IP address 2001:db8::c0a8:310a:

Gxxx-001(super)# copy startup-config https https://[2001:db8:c0a8:310a]:443/mg-1.cfg secure