copy startup-config scp

Last Updated : Nov 06, 2012 |
Uploads the current configuration to a file on an SCP server. The command prompts for the username and password. Uncommitted changes to the configuration are not included.
Prolog information
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 scp filename {<ip-addr>|<IPv6–addr>[%zone-id]|<hostname>}

Parameters

Parameter
Description
Possible Values
Default Value
filename
Name of file to create on the SCP server
ip-addr
IPv4 address of the SCP server
IPv6-addr
IPv6 address of the SCP server
%zone-id
VLAN nuber
1 — 4,090
hostname
Hostname of the SCP server

User level

read-write

Context

general

Example

To upload the current configuration to router1.cfg on the SCP server at IP address 192.168.49.10:
Gxxx-001(super)# copy startup-config scp c:\config_files\router1.cfg
192.168.49.10
To upload the current configuration to router1.cfg on the SCP server at IP address 2001:db8::c0a8:310a:
Gxxx-001(super)# copy startup-config scp c:\config_files\router1.cfg
2001:db8::c0a8:310a
To upload the current configuration to router1.cfg on the SCP server with hostname my.scp.server:
Gxxx-001(super)# copy startup-config scp c:\config_files\router1.cfg
my.scp.server