Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Backing up IOS and running config to FTP server

Hi,

Does anyone know the commnand i should use (for 3560g switches) in order to backup the ios and running to a ftp server i have on the same lan ??

10 REPLIES

Re: Backing up IOS and running config to FTP server

Hi,

- Copy running-config ftp:[[//username [:password]@] location]/directory]/filename. Copy flash:ios_name ftp:[[//username [:password]@] location]/directory]/filename.

Reference:http://www.cisco.com/en/US/docs/ios/12_1/configfun/command/reference/frd2001.html#wp1021855

I hope this helps.

Best regards.

Massimiliano.

Re: Backing up IOS and running config to FTP server

To add to Massimilianos post, you can configure a ftp username and password.

ip ftp username username

ip ftp password password

Community Member

Re: Backing up IOS and running config to FTP server

Ok,thanks

Now lets say i cannot use that ftp server, and i just want to copy the ios to a computer.

The configuration i know i can copy it just doing a show run and copy the text and then pasting it to a notepad, but the ios?

Re: Backing up IOS and running config to FTP server

The IOS must be transferred (tftp, ftp,scp, etc).

It's copy source destination

Example

7206VXR#dir flash:

Directory of flash:/

1 -rw- 31626880 Sep 26 2007 23:13:14 -05:00 c7200p-advsecurityk9-mz.124-15.T1.bin

256450560 bytes total (224821248 bytes free)

Let's say my TFTP server is at address 10.1.2.217

7206VXR#copy flash:c7200p-advsecurityk9-mz.124-15.T1.bin tftp

Address or name of remote host []? 10.1.2.217

Destination filename [c7200p-advsecurityk9-mz.124-15.T1.bin]?

!!!!!!!!!!!!!!

Community Member

Re: Backing up IOS and running config to FTP server

Hi,

I installed a tftp server and when i try to copy the ios...

NetworkSwitch1#dir flash:

Directory of flash:/

2 -rwx 6558 Apr 4 1993 20:43:51 +00:00 config.text

3 drwx 64 Mar 1 1993 00:00:06 +00:00 microcode_update

4 drwx 192 Mar 1 1993 00:08:47 +00:00 c3560-ipbase-mz.122-25.SEE2

8 -rwx 27 Apr 4 1993 20:43:51 +00:00 private-config.text

9 -rwx 856 Mar 29 1993 01:20:03 +00:00 vlan.dat

32514048 bytes total (24298496 bytes free)

NetworkSwitch1#copy c3560-ipbase-mz.122-25.SEE2 tftp:

Address or name of remote host []? 192.168.165.95

Destination filename [c3560-ipbase-mz.122-25.SEE2]?

%Error reading flash:c3560-ipbase-mz.122-25.SEE2 (Is a directory)

NetworkSwitch1#

Re: Backing up IOS and running config to FTP server

OK, the IOS image is in the c3560-ipbase-mz.122-25.SEE2 directory (the image will always have a .bin extension). Switches from the factory have the web interface installed. Once you go into the directory you'll see all the files for supporting that, but you should also see c3560-ipbase-mz.122-25.SEE2.bin

Switch# cd c3560-ipbase-mz.122-25.SEE2

[There will be no change in the prompt]

Switch# dir

[You should see a bunch of files including the .bin file]

Do your copy from here. To go back type cd ..

Re: Backing up IOS and running config to FTP server

Collin is right the ios file is a directory.

you can also try to do check the bin file in other way.

# dir flash:

# dir flash:c3560-ipbase-mz.122-25.SEE2

Press enter you will see the bin file

copy flash:c3560-ipbase-mz.122-25.SEE2/c3560 (press tab) tftp:

enter

You will have to give the tftp server ip address follwed.

Also after the command flash:c3560-ipbase-mz.122-25.SEE2/ i dont rem if it forward or backslah but try out. press tab would complete the ios file name ending by .bin

HOpe this helps

Hall of Fame Super Gold

Re: Backing up IOS and running config to FTP server

Francisco

It may also help to give the path name of the file that you are trying to copy. such as:

copy flash:c3560-ipbase-mz.122-25.SEE2/c3560-ipbase-mz.122-25.SEE2.bin tftp

HTH

Rick

Community Member

Re: Backing up IOS and running config to FTP server

Perfect. I was able to make the backup.

Thanks a lot.

Re: Backing up IOS and running config to FTP server

Thats good to know.

Regards,

pravin

3425
Views
5
Helpful
10
Replies
CreatePlease to create content