#!/bin/bash cd /root/librex git fetch if [ -n "$(git diff @ @{u})" ]; then git pull lftp -c "set sftp:auto-confirm yes; open sftp://[REDACTED]; mirror -Rev ./ [REMOTE]/ --only-newer --parallel=10 -X .htaccess -X config.php -X opensearch.xml -X robots.txt" else echo "Up-to-date" fi