i think if you use EEM will be easier
try the follwoing:
event manager applet backup
event timer cron name "sundays" cron-entry " 0 0 * * 0" ---trigger script midnight once a week on Sunday
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "file prompt quiet"
action 4.0 cli command "end"
action 5.0 cli command "copy running tftp://serverIP" use normal CLI copmmands
action 6.0 cli command "config t"
action 7.0 cli command "no file prompt quiet"
action 8.0 cli command "end"
if you still have issues i would recomnd you to open this discussion under network managment section
good luck
if helpful Rate