#!/bin/sh # run from opal . get_root set -v rs() { rsync --recursive --links --perms --times --group --owner --devices --specials --compress --partial --inplace --hard-links --no-whole-file --progress --verbose "$@" } rs /etc/bind/freens/ pi.ucm.dev:/etc/bind/freens/ rs /etc/letsencrypt/ pi.ucm.dev:/etc/letsencrypt/ systemctl reload bind9 systemctl reload apache2 || systemctl start apache2 systemctl reload haproxy || systemctl start haproxy systemctl reload nginx || systemctl start nginx pi systemctl reload bind9 pi -- sh -c 'systemctl reload apache2 || systemctl start apache2'