copy 
 
   
  Copies configuration data. 
  
 Syntax
 
	  
		copy 
		 
		  source_file 
		  destination_file 
		 
	 
  
	 Parameters
 
		 
		   
			 -  
				 
				  source_file 
				 
			 
  
			 - The source file to be copied. Specify one of the following parameters: 
				
 
				   
					 - 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. 
					 
  
				   
				   
					 - sftp://username:password@host_ip_address/path 
					 
  
					 - A file on a remote host. Transfer protocol is SFTP. 
					 
  
				   
				   
					 - tftp://username:password@host_ip_address/path 
					 
  
					 - A file on a remote host. Transfer protocol is TFTP. 
					 
  
				   
				   
					 - usb://path 
					 
  
					 - A file on an attached USB device. 
					 
  
				   
				
 
			   
		   
		   
			 -  
				 
				  destination_file 
				 
			 
  
			 -  The destination file. Specify one of the following parameters: 
				
 
				   
					 - 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. 
					 
  
				   
				   
					 - sftp://username:password@host_ip_address/path 
					 
  
					 - A file on a remote host. Transfer protocol is SFTP. 
					 
  
				   
				   
					 - tftp://username:password@host_ip_address/path 
					 
  
					 - A file on a remote host. Transfer protocol is TFTP. 
					 
  
				   
				   
					 - usb://path 
					 
  
					 - A file on an attached USB device. 
					 
  
				   
				
 
			   
		   
		   
		
 
	 
 
	 Modes
 
		 Privileged EXEC mode 
		
 
	 
 
	 Usage Guidelines
 
		 Use this command to back up and restore configuration files with various protocols. 
		
 
		 This command is supported only on the local switch. 
		
 
		 IPv4 and IPv6 addresses are supported. 
		
 
		The special characters of dollar sign "$" and exclamation point "!" can be used as part of the password variable, provided they are paired with the correct escape characters. The "$" must be paired with two backslashes "\\". For example, if your password choice was "$password" on a remote server, you must use "username:\\$password@1.1.1.1" for the 
		  copy command. The exclamation point must be paired with a single backslash in the 
		  copy command, such as "username:\!password@1.1.1.1". 
		
 
	 
 Examples
 
	  
		 To save the running configuration to a file: 
		
 
		
device# copy running-config flash://myconfig 
 
	  
	  
		 To overwrite the startup configuration with a locally saved configuration file: 
		
 
		
device# copy flash://myconfig running-config
  
 
	  
	  
		 To overwrite the startup configuration with a remotely archived configuration file: 
		
 
		
device# 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: 
		
 
		
device# copy usb://myconfig startup-config