@a_human wrote:
thank you this is great info, sorry for the dumb question, but how exaclty do you get this script in the config?
you dont - it's a standalone expect script to be placed on a linux pc/vm (not windows based on how it's written) and it will connect to the controller, perform a flash backup and then SCP back to itself.
If you are not familiar with expect or Linux (and you prefer Windows) then you may want to look into using a SSH terminal program which supports macros/scripts to ssh in, backup the flash and run the correct CLI command to scp/ftp it out; then setup taskschd in windows to run the macro daily etc.
the final alternative I can suggest is you can use some sort of web automation tool/macro tool (they exist, check in Google etc.) to record yourself logging into the webUI of the controller then performing a backup flash from the Maintenance menu (note in AOS 6 you cannot direct download the flash backup via the webUI you have to use a file server, but in Aos 8 you can download it directly)
hth,
-jeff