rewrites the whole thing
This commit is contained in:
37
pull-remote-webroot.sh
Executable file
37
pull-remote-webroot.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
|
||||
read -p "Est-ce que le repertoire distant est bien monté localement (YyOo) ? " REPLY
|
||||
if [ "$REPLY" != "${REPLY#[YyOo]}" ]; then
|
||||
echo "we carry on"
|
||||
else
|
||||
echo "we stop"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
read -p "Est-ce que le volume docker est bien monté localement (YyOo) ? " REPLY2
|
||||
if [ "$REPLY2" != "${REPLY2#[YyOo]}" ]; then
|
||||
echo "we carry on"
|
||||
else
|
||||
echo "we stop"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat ./exclude-list
|
||||
read -p "Est-ce que la commande rsync exclut bien un éventuel plugin ou thème en cours de développement en local (YyOo) ? " REPLY3
|
||||
if [ "$REPLY3" != "${REPLY3#[YyOo]}" ]; then
|
||||
echo "we carry on"
|
||||
else
|
||||
echo "we stop"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rsync \
|
||||
--archive \
|
||||
--delete \
|
||||
--exclude-from='exclude-list' \
|
||||
--human-readable \
|
||||
--progress \
|
||||
--verbose \
|
||||
"${PWD}/webroot-remote/" \
|
||||
"${PWD}/webroot-volume"
|
||||
Reference in New Issue
Block a user