12-04-2006 04:10 AM - edited 03-05-2019 01:09 PM
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
12-04-2006 04:14 AM
you can do this easily through tftp server.
1. setup a tftp server.
2. copy file from the router to tftp server.
copy flash:
3. copy file on tftp server to router.
copy tftp: flash:
hope it helps ... rate if it does ...
12-04-2006 04:14 AM
hi
try the use of COPY FLASH TFTP. instead of FTP.
HTH
12-04-2006 07:20 AM
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
12-07-2006 10:43 PM
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.
12-08-2006 05:17 AM
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
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