I installed a new 3925 yesterday to try and replace and older 3825, hence i was burdened with the task of first adapting the config to work with the 3925 which had a different hardware spec, and then copying IPT files off the CF which became a nightmare when i saw the number of files.
I somehow managed to get through the config part, but failed to make significant progress in copying the files on the CF because they were just too many. I ended up doing repeat commands like copy flash:<filename> tftp:<filename>
Is there anyway to copy all the files with just one command?
I also tried using the SDM on the router but whenever I plugged my usb flash drive into it, the router does not recognize it.
Any ideas please?
There are some support for TAR in some IOS version, the 3925 probably running a recent IOS may support the create TAR operation if you want to copy from one flash to the other. Use:
archive tar /create
to generate one and
archive tar /xtract
to extract it.
Router#archive tar ?
/create create a tar file
/table List files in tar file
/xtract Extract files in tar file
If that doesn't work for you, there is also the possibility to use TCL, this has for example been discussed in other thread such as:
thanks at least for this idea, however it's also useless in case I've seized parent folder with tons of configs and BIN files, and trying to make some exclude action (possible in UNIX) is impossible, i.e. for few BIN files.
This is shame on Cisco for generating tons of features and hardware over years and not having there this original UX world capability.. :-)) Also moving files among folders, not just copy and delete..
I checked CLT tool with "archive" keyword and found also that I can make online tar archive on TFTP server.. Again, would be great if there was small space on flash, however without some exclude cap it's useless, becuase in my case I have issue that my transfer stops after some 30MB with directly attached server on WinX SP3 (dont have time to connect Win7..). I use parent folder as ".", that also includes my believed-to-be-excluded dir "/IOS/". It's a crap.
Would wonder if someone was being able to do this in IOS.
The following example shows how to create a TAR file. The command writes the contents of the new-configs directory on the local flash device to a file named saved.tar on the TFTP server at 172.20.136.9.
Switch# archive tar /create tftp:172.20.136.9/saved.tar flash:/new-configs
That's a issue for me currenly too... Local reader is broken and have no time to repair or buy one :-D. Defiinitely only way to avoid this backup nightmare, yep!