Created: 2011-07-13 19:26
Updated: 2017-11-27 19:11

Simple python script to backup the config from my Tomato router

I borrowed the idea from Gregg Hansen's excellent bash script and rewrote it in python. My version can now handle multiple devices, too, and has got a lot more objecty.

Using it

You will require:

  • python-yaml (apt-get install python-yaml on Ubuntu-ish systems, there's presumably a python egg too)
  • https enabled on your router (python urllib makes no pretence of validating an SSL cert so a fake one is fine)

Then it's very simple, cp config/config.yaml-sample config/config.yaml and fill in the details, then run ./ (runs fine from cron etc.)

It works for me, but please be aware that is a quick hack I threw together in about an hour. If you're using it to backup your mission-critical multi-million-dollar infrastructure, well, you probably want to test it more than I did.

This is also an excuse to play with github :)

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more