update_librex.sh 287 B

123456789
  1. #!/bin/bash
  2. cd /root/librex
  3. git fetch
  4. if [ -n "$(git diff @ @{u})" ]; then
  5. git pull
  6. 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"
  7. else
  8. echo "Up-to-date"
  9. fi