#!/bin/sh . 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/ rs /etc/bind/freens/ ucm.dev:/etc/bind/freens/ rs /etc/letsencrypt/ ucm.dev:/etc/letsencrypt/ systemctl reload bind9 systemctl reload apache2 || systemctl start apache2 pi systemctl reload bind9 pi sh -c 'systemctl reload apache2 || systemctl start apache2' opal systemctl reload bind9 opal sh -c 'systemctl reload apache2 || systemctl start apache2' opal sh -c 'systemctl reload haproxy || systemctl start haproxy' opal sh -c 'systemctl reload nginx || systemctl start nginx'