The greatest challenge to any thinker is stating the problem in a way that will allow a solution

Bertrand Russell

By

On 16 May 2012

Tech Notes

Tags:


This is a quick follow-up post on restoring a saved config for a Vyatta router.  I recently created a PowerShell script that checks my Vyatta routers and takes a backup of the config if its new than any existing backup (see Backup Vyatta Router configs with PowerShell).

Taking backups is all well and good, but its of little use if you don’t know how to restore…

  1. Upload the config that you want to restore to the router (see below for further info)
    • EG pscp d:\Vyatta\backups\ROUTER1_2012-01-05_08-10.cfg admin@router1:/tmp/.
    • Accept key cache if asked and enter password
  2. Log into router using SSH as an admin user
  3. Enter configure mode
    • configure
  4. Load backup config, apply and save
    • EG load /tmp/ROUTER1_2012-01-05_08-10.cfg
    • commit
    • save

Getting the old config onto the router is probably the trickiest part.  If you’re copying from a Windows machine then you’ll want to use pscp (as in the procedure above), which is available to download with PuTTY.  If you’re copying from a Linux machine then you’ll want to use scp, which uses a similar syntax to pscp (but is probably included with the OS so won’t need to be downloaded).


1 Comment to “Restore Vyatta Config Backup”

  1. ssh server windows…

    […]Restore Vyatta Config Backup | vBlog[…]…

Leave a Reply

XHTML: You can use these tags if you know what they are: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

ERROR: si-captcha.php plugin says GD image support not detected in PHP!

Contact your web host and ask them why GD image support is not enabled for PHP.

ERROR: si-captcha.php plugin says imagepng function not detected in PHP!

Contact your web host and ask them why imagepng function is not enabled for PHP.