Copies running configuration to the specified file to create a backup.
Exec mode
This command is available only to users with admin role.
Valid user credentials must be provided for accessing the remote server.
File path must be valid.
Target destination file must be reachable.
The following example copies 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://testfileThe following examples show error messages.
Invalid target file:
device# copy running-config flash://config-file Error: Target file does not exist device# copy running-config flash://config-filede/ Error: Target file does not exist device# copy running-config scp://prabhus:prabhus@.1.2.2.2:/home/prabhus/test Error: Target file does not exist
Host IP not reachable:
device# copy running-config scp://test:test@1.1.1.1:/home/test/file
Error: Host IP not reachable
USB not enabled:
device# copy running-config usb://file
Error: USB not enabled
Input file not specified:
device# copy running-config usb://
Error: Input file not specified
Invalid user credentials:
device# copy running-config scp://prabhus:prabhus@.1.2.2.2:/home/prabhus/test
Error: Invalid user credentials.
User role:
device# copy
Unknown command