From 5d96fa9755d690828fca6b041f799f44241299d5 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 25 Jul 2025 07:53:27 +0200 Subject: Backup tool for lhn2ix --- config/backup-lhn2ix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 config/backup-lhn2ix (limited to 'config') diff --git a/config/backup-lhn2ix b/config/backup-lhn2ix new file mode 100755 index 0000000..0b135fb --- /dev/null +++ b/config/backup-lhn2ix @@ -0,0 +1,13 @@ +#!/bin/bash + +set -euo pipefail + +basedir="${0%/*}" + +cd "$basedir" + +ssh ubnt@192.168.11.1 \ + /opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration commands \ + > .tmp + +mv .tmp "${0##*backup-}".txt -- cgit v1.2.3