rewrites the whole thing

This commit is contained in:
Jean-Christophe Vanhalle
2023-08-14 14:48:47 +02:00
parent 222d86a909
commit b47876ad62
19 changed files with 407 additions and 139 deletions

37
pull-remote-webroot.sh Executable file
View 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"