Adding netbox and monbox

This commit is contained in:
Noah L. Schrick 2022-12-11 14:25:22 -06:00
parent 452029bf39
commit 73c753998d

View File

@ -153,6 +153,30 @@ case $HOSTNAME in
# Log to journalctl # Log to journalctl
2>&1 2>&1
;; ;;
(netbox)
# Stop all containers
docker stop $(docker ps -aq)
borg create -v $BORG_OPTS $REPO::$HOST-$DATE /home \
$COMMON_HOME_EXCLUDES \
# Log to journalctl
2>&1
# Start all containers
docker start $(docker ps -aq)
;;
(monbox)
# Stop all containers
docker stop $(docker ps -aq)
borg create -v $BORG_OPTS $REPO::$HOST-$DATE /home \
$COMMON_HOME_EXCLUDES \
# Log to journalctl
2>&1
# Start all containers
docker start $(docker ps -aq)
;;
esac esac
# Unset passphrase and exit on error. Pretty sure the unset is unneeded here. # Unset passphrase and exit on error. Pretty sure the unset is unneeded here.