You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pull-remote-webroot.sh 841B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #! /bin/sh
  2. #
  3. read -p "Est-ce que le repertoire distant est bien monté localement (YyOo) ? " REPLY
  4. if [ "$REPLY" != "${REPLY#[YyOo]}" ]; then
  5. echo "we carry on"
  6. else
  7. echo "we stop"
  8. exit 1
  9. fi
  10. read -p "Est-ce que le volume docker est bien monté localement (YyOo) ? " REPLY2
  11. if [ "$REPLY2" != "${REPLY2#[YyOo]}" ]; then
  12. echo "we carry on"
  13. else
  14. echo "we stop"
  15. exit 1
  16. fi
  17. cat ./exclude-list
  18. 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
  19. if [ "$REPLY3" != "${REPLY3#[YyOo]}" ]; then
  20. echo "we carry on"
  21. else
  22. echo "we stop"
  23. exit 1
  24. fi
  25. rsync \
  26. --archive \
  27. --delete \
  28. --exclude '/wp-config.php' \
  29. --exclude-from='exclude-list' \
  30. --human-readable \
  31. --progress \
  32. --verbose \
  33. "${PWD}/webroot-remote/" \
  34. "${PWD}/webroot-volume"