Periodic file upload

From CT3

Jump to: navigation, search

The applet periodically uploads any file resident in the router to an external file server.

Usage guidelines

The applet requires no additional configuration, but you have to edit the parameters in the source code. The responses to various command propts (action 2.0 through 4.0) assume that the file prompt level is set to alert. If you have configured file prompt quiet, there is no prompting after the copy command.

Author

cpmf14, in a comment in the IOShints blog.

Source code

event manager applet backup-crl
 event timer watchdog time 86400 maxrun 4294967295
 action 1.0 cli command "enable"
 action 2.0 cli command "copy flash:/iosca.crl ftp://username:passwd@a.b.c.d/" pattern "a.b.c.d"
 action 3.0 cli command "a.b.c.d" pattern "iosca.crl"
 action 4.0 cli command "iosca.crl"
 action 5.0 syslog msg "FTP backup successful"