Network OS Command Reference
Network OS Command Reference
NOS 3.0.1
53-1002796-03
documentation@brocade.com


Network OS Commands : copy

copy
Copies configuration data.
Synopsis
copy source_file destination_file
Operands
source_file The source file to be copied. Specify one of the following options:
default-config The default configuration.
running-config The running configuration.
startup-config The startup configuration.
flash://filename A file in the local flash memory.
ftp://username:password@host_ip_address/path A file on a remote host. Transfer protocol is FTP.
scp://username:password@host_ip_address/path A file on a remote host. Transfer protocol is SCP.
usb://path A file on an attached USB device.
destination_file The destination file. Specify one of the following options:
default-config The default configuration.
running-config The running configuration.
startup-config The startup configuration.
flash://filename A file in the local flash memory.
ftp://username:password@host_ip_address//path A file on a remote host. Transfer protocol is FTP.
scp://username:password@host_ip_address//path A file on a remote host. Transfer protocol is SCP.
usb://path A file on an attached USB device.
Defaults
None
Command Modes
Privileged EXEC mode
Description
Use this command to copy a file to another location. You can use this command to back up and restore configuration files with various protocols.
Usage Guidelines
This command is supported only on the local switch.
IPv4 and IPv6 addresses are supported.
Examples
To save the running configuration to a file:
switch# copy running-config flash://myconfig
To overwrite the startup configuration with a locally saved configuration file:
switch# copy flash://myconfig startup-config
This operation will modify your startup configuration. Do you want to continue? [Y/N]: Y
To overwrite the startup configuration with a remotely archived configuration file:
switch# copy scp://user:password@10.10.10.10//myconfig startup-config
To overwrite the startup configuration with a configuration file saved on an attached USB device:
switch# copy usb://myconfig startup-config
See Also
copy default-config startup-config, copy running-config startup-config, delete, dir, rename, show file, show running-config, show startup-config

Network OS Commands : copy