mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-25 17:55:01 +01:00
Update pms-copy-data.sh
This commit is contained in:
parent
cdb6911434
commit
70c2e726f6
@ -86,6 +86,7 @@ if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then
|
|||||||
fi
|
fi
|
||||||
msg "Mounting Container Disks..."
|
msg "Mounting Container Disks..."
|
||||||
DATA_PATH=var/lib/plexmediaserver/Library/Application Support/Plex Media Server/
|
DATA_PATH=var/lib/plexmediaserver/Library/Application Support/Plex Media Server/
|
||||||
|
mkdir ${CTID_TO_PATH}${DATA_PATH}
|
||||||
CTID_FROM_PATH=$(pct mount $CTID_FROM | sed -n "s/.*'\(.*\)'/\1/p") || \
|
CTID_FROM_PATH=$(pct mount $CTID_FROM | sed -n "s/.*'\(.*\)'/\1/p") || \
|
||||||
die "There was a problem mounting the root disk of LXC '${CTID_FROM}'."
|
die "There was a problem mounting the root disk of LXC '${CTID_FROM}'."
|
||||||
[ -d "${CTID_FROM_PATH}${DATA_PATH}" ] || \
|
[ -d "${CTID_FROM_PATH}${DATA_PATH}" ] || \
|
||||||
@ -96,7 +97,7 @@ CTID_TO_PATH=$(pct mount $CTID_TO | sed -n "s/.*'\(.*\)'/\1/p") || \
|
|||||||
die "Plex Media Server directories in '$CTID_TO' not found."
|
die "Plex Media Server directories in '$CTID_TO' not found."
|
||||||
|
|
||||||
#rm -rf ${CTID_TO_PATH}${DATA_PATH}
|
#rm -rf ${CTID_TO_PATH}${DATA_PATH}
|
||||||
mkdir ${CTID_TO_PATH}${DATA_PATH}
|
#mkdir ${CTID_TO_PATH}${DATA_PATH}
|
||||||
|
|
||||||
msg "Copying Data Between Containers..."
|
msg "Copying Data Between Containers..."
|
||||||
RSYNC_OPTIONS=(
|
RSYNC_OPTIONS=(
|
||||||
|
Loading…
Reference in New Issue
Block a user