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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Copying files between routers

Hi,

I'm trying to copy files between routers (by enabling FTP server), and to FTP server on my LAN. I would like to schedule the copying using kron, and copy files in bulk (e.g. mput or cp *).

The IOS command I was hoping would work is 'copy flash:/test/* ftp:......' but this doesn't work - are there any easy ways of doing this?

Many thanks,

Michael

5 REPLIES

Re: Copying files between routers

you can do this easily through tftp server.

1. setup a tftp server.

2. copy file from the router to tftp server.

copy flash: tftp:

3. copy file on tftp server to router.

copy tftp: flash:

hope it helps ... rate if it does ...

Bronze

Re: Copying files between routers

hi

try the use of COPY FLASH TFTP. instead of FTP.

HTH

New Member

Re: Copying files between routers

Hi,

Sorry, I know about copying individual files.. I would like to copy all the files in a directory in the flash memory to another router or server (with a single command) if possible, and then setup a kron job to do this regularly..

I've read about TCL, but haven't found any easy examples ...

Regards,

Michale

Silver

Re: Copying files between routers

I suggest to write the script that inlcude all steps when copy the file via console. The router can be acted a TFTP server and I usually use it when I need to upgrade other local devices.

Hope this helps.

New Member

Re: Copying files between routers

Hi

You can copy your Flash image as well your running or startup configuration on local as well remote FTP server.

The thing is you must have the username and the password of FTP server and need to setup on Cisco Router by,

ip ftp username cisco

ip ftp password cisco123

thanafter issur the command

copy flash: ftp:

you will be ask for the remote host ip, give your ftp ip address here and you will get your file in to the default ftp directory.

For Scheduling you can try following as command scheduling. [this has not been tested but you can try if it works]

Router(config)# kron policy-list backup

Router(config-kron-policy)# cli copy flash: ftp:IP_Address

Router(config)# kron occurrence backup at 22:00 Mon recurring

Router(config-kron-occurrence)# policy-list backup

[Make sure you have setup ip ftp username and password]

Verify by

Router# show kron schedule

Router(config-kron-policy)# exit

Regards,

Dhaval Tandel

400
Views
0
Helpful
5
Replies
CreatePlease login to create content