Adding netbox and monbox
This commit is contained in:
parent
452029bf39
commit
73c753998d
24
borgBK.sh
24
borgBK.sh
@ -153,6 +153,30 @@ case $HOSTNAME in
|
||||
# Log to journalctl
|
||||
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
|
||||
|
||||
# Unset passphrase and exit on error. Pretty sure the unset is unneeded here.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user