update_librex.sh 295 B

123456
  1. #!/bin/bash
  2. cd /root/librex
  3. git fetch origin main -n
  4. [ -n "$(git diff @ @{u})" ] || { echo "Up-to-date" && exit; }
  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"