Skip to content

Instantly share code, notes, and snippets.

@gotbadger
Forked from caius/Makefile
Last active July 17, 2016 13:18
Show Gist options
  • Select an option

  • Save gotbadger/1f8bee604befd79e7adc717418d7a791 to your computer and use it in GitHub Desktop.

Select an option

Save gotbadger/1f8bee604befd79e7adc717418d7a791 to your computer and use it in GitHub Desktop.

Revisions

  1. gotbadger revised this gist Jul 17, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -4,10 +4,10 @@ save:
    make -j save_config save_commands save_scripts

    save_config:
    ssh earl "/opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration" 2> /dev/null > config.txt
    ssh 192.168.1.1 "/opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration" 2> /dev/null > config.txt

    save_commands:
    ssh earl "/opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration commands" 2> /dev/null > commands.txt
    ssh 192.168.1.1 "/opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration commands" 2> /dev/null > commands.txt

    save_scripts:
    scp -r earl:/config/scripts/ . 2> /dev/null
    scp -r 192.168.1.1:/config/scripts/ . 2> /dev/null
  2. @caius caius revised this gist Jul 6, 2016. No changes.
  3. @caius caius created this gist Jul 6, 2016.
    13 changes: 13 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    .PHONY: save save_config save_commands save_scripts

    save:
    make -j save_config save_commands save_scripts

    save_config:
    ssh earl "/opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration" 2> /dev/null > config.txt

    save_commands:
    ssh earl "/opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration commands" 2> /dev/null > commands.txt

    save_scripts:
    scp -r earl:/config/scripts/ . 2> /dev/null