copy running-config

Copies the running configuration to the specified file to create a backup.

Syntax

copy running-config FLASH-FILE
copy running-config REMOTE-FILE
copy running-config USB-FILE

Parameters

running-config
Specifies current running configuration.
FLASH-FILE
Specifies the flash file path in format flash://flash-type/file-name.
REMOTE-FILE
Specifies the remote server file path in format scp://username:password@host[:port]/filepath.
Domain name, IPv4 address, and IPv6 address are supported as host. Only valid unicast IP addresses are supported. Multicast IP addresses are not supported.
USB-FILE
Specifies the USB file path in format usb://file-name.

Modes

Exec mode

Usage Guidelines

This command is available only to users with the admin role.

Valid user credentials must be provided for accessing the remote server.

The file path must be valid.

The target destination file must be reachable.

Examples

The following example copies the running configuration to the specified file.

device# copy running-config flash://config-file/testfile 

device# copy running-config scp://test:test@1.1.1.1:22/home/test/testfile 

device# copy running-config usb://testfile