11-17-2010 02:20 PM - edited 03-03-2019 06:07 AM
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?
Regards,
Femi
11-25-2010 06:03 AM
Hi Femi,
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:
02-13-2014 01:20 AM
Hi there,
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.
Regards
Peter
05-07-2015 05:39 AM
http://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_a1.html#wp1047206
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
07-08-2016 12:33 AM
Wrong on ios 15.5:
Must be
archive tar /create tftp://10.43.255.217/vg1e.tar flash0:
11-25-2010 01:34 PM
Take the CF out and use a multi-card reader to transfer the files.
02-13-2014 01:23 AM
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!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide