You can use the copy flash TFTP command to copy the IOS to the TFTP server as shown next:
Router#copy flash tftp
Source filename []?c2800nm-advsecurityk9-mz.124-12.bin
Address or name of remote host []?1.1.1.2
Destination filename [c2800nm-advsecurityk9-mz.124-12.bin]?[enter]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!
21710744 bytes copied in 60.724 secs (357532 bytes/sec)
Router#
Just copy the IOS filename from either the show flash or show version command and then paste it when prompted for the source filename.
To copy the contents of NVRAM to a TFTP server on a Cisco device, you can use the command: copy nvram tftp After executing this command, you will be prompted to enter the TFTP server's IP address and the filename for the backup. Make sure that the TFTP server is reachable and properly configured to accept the transfer.
This command will copy the running configuration (located in RAM) of a Cisco device to a TFTP server. After executing the command you will be prompted for further information about the TFTP server (Server Address, file name, etc.).
This command will allow you to copy a configuration from a TFTP server to the running configuration of a Cisco device. When you issue the command you will be prompted for further details about the TFTP server. The new configuration will replace the active one (or running configuration) and make any necessary changes.
config tftp run
it copies the ios FLASH to TFTP SERVER
RouterC#copy running-config tftp [copy run tftp]
What is the purpose of using the copy tftp flash command on a router? to back up the current IOS image to a server to restore the IOS image from a server to back up the router configuration to a server to restore the router configuration from flash
You can use scp (depending on the IOS version), or you can use Xmodem over the console line.It's usually easier to setup a tftp server on a random PC or laptop, though.
to TFTP
To install IOS on a Cisco 2600 router, first, download the appropriate IOS image from Cisco's website (ensure you have the necessary permissions). Next, connect to the router via console cable and use a terminal emulator to access the command line. Transfer the IOS image to the router using TFTP or a similar method, then use the copy tftp flash command to copy the image to the router's flash memory. Finally, configure the router to boot from the new IOS image by updating the boot system command in the configuration and rebooting the router.
To save the current running configuration you can use the "copy run start" command. Any configurations that are made on a router will not be saved until you use this command and it will save the current running configuration to the local NVRAM. This configuration will then be used on next startup. To back up we can save the configuration to a remote TFTP server with use of the "copy run tftp" command. Always have a back up plan.
scanstate