diff options
Diffstat (limited to 'config/backup-lhn2ix')
-rwxr-xr-x | config/backup-lhn2ix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/backup-lhn2ix b/config/backup-lhn2ix new file mode 100755 index 0000000..6755232 --- /dev/null +++ b/config/backup-lhn2ix @@ -0,0 +1,13 @@ +#!/bin/bash + +set -euo pipefail + +basedir="${0%/*}" + +cd "$basedir" + +ssh ubnt@lhn2ix.dn42.trygvis.io \ + /opt/vyatta/bin/vyatta-op-cmd-wrapper show configuration commands \ + > .tmp + +mv .tmp "${0##*backup-}".txt |