|
|
@ -83,7 +83,10 @@ whiptail --defaultno --title "$TITLE" --yesno \
|
|
|
|
$CTID_FROM (${CTID_FROM_HOSTNAME}) -> $CTID_TO (${CTID_TO_HOSTNAME})
|
|
|
|
$CTID_FROM (${CTID_FROM_HOSTNAME}) -> $CTID_TO (${CTID_TO_HOSTNAME})
|
|
|
|
Version: 2022.01.23" 13 50 || exit
|
|
|
|
Version: 2022.01.23" 13 50 || exit
|
|
|
|
info "Home Assistant Data from '$CTID_FROM' to '$CTID_TO'"
|
|
|
|
info "Home Assistant Data from '$CTID_FROM' to '$CTID_TO'"
|
|
|
|
|
|
|
|
if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then
|
|
|
|
|
|
|
|
msg "Stopping '$CTID_TO'..."
|
|
|
|
|
|
|
|
pct stop $CTID_TO
|
|
|
|
|
|
|
|
fi
|
|
|
|
msg "Mounting Container Disks..."
|
|
|
|
msg "Mounting Container Disks..."
|
|
|
|
DOCKER_PATH=/var/lib/docker/volumes/hass_config/
|
|
|
|
DOCKER_PATH=/var/lib/docker/volumes/hass_config/
|
|
|
|
CTID_FROM_PATH=$(pct mount $CTID_FROM | sed -n "s/.*'\(.*\)'/\1/p") || \
|
|
|
|
CTID_FROM_PATH=$(pct mount $CTID_FROM | sed -n "s/.*'\(.*\)'/\1/p") || \
|
|
|
|