dn42/scripts/update.sh
2020-04-04 13:58:50 +02:00

27 lines
995 B
Bash

#!/bin/bash
scp fsn1.dn42.zotan.network:/etc/systemd/network/* nodes/fsn1/systemd-networkd
scp nbg1.dn42.zotan.network:/etc/systemd/network/* nodes/nbg1/systemd-networkd
scp hel1.dn42.zotan.network:/etc/systemd/network/* nodes/hel1/systemd-networkd
scp fsn2.dn42.zotan.network:/etc/systemd/network/dn42* nodes/fsn2/systemd-networkd
scp fsn1.dn42.zotan.network:/etc/bird.conf nodes/fsn1/bird2
scp nbg1.dn42.zotan.network:/etc/bird.conf nodes/nbg1/bird2
scp hel1.dn42.zotan.network:/etc/bird.conf nodes/hel1/bird2
scp fsn2.dn42.zotan.network:/etc/bird.conf nodes/fsn2/bird2
scp -r fsn1.dn42.zotan.network:/etc/bird nodes/fsn1/bird2
scp -r nbg1.dn42.zotan.network:/etc/bird nodes/nbg1/bird2
scp -r hel1.dn42.zotan.network:/etc/bird nodes/hel1/bird2
scp -r fsn2.dn42.zotan.network:/etc/bird nodes/fsn2/bird2
scp fsn1.dn42.zotan.network:/etc/iptables/ip*tables.rules nodes/fsn1/iptables
scp root@fsn1.dn42.zotan.network:/etc/named.conf nodes/fsn1/named
echo
echo
echo
ggrep -r "PrivateKey " .