I'm exploring network programming because I've got a project where it seems like it would be critical / necessary. I want to develop an automated way to backup the running config, diff it to the last stored copy, store / version if different, and most importantly be able to automate a full restore or going back to a prior version.
I discovered RESTconf and how I can use it to pull the full running-config from Cat9300 that I setup for this testing lab. That was between use of Google, YouTube videos, and some use of GenAi. Pretty neat. Just using 'postman' at the moment to start out with delivering the API calls / curl statements.
Where I'm confused or not sure about what to research is how to "deliver" the versioned prior config. As far as REST, this can't be done. That is, I have to use a pre-existing method like scp, http, ftp, tftp, etc, first to upload. Then I might be able to use REST to "configure replace" the file or such. Or maybe I need do use something else like Anisble to script the file delivery and command execution.
In general, am I on the right track? Is there something I'm missing. Easier way to do this? Thanks, I appreciate any feedback.