update_librex.sh 312 B

123456
  1. #!/bin/bash
  2. cd /root/librex
  3. git fetch origin main -n --quiet
  4. git diff --quiet HEAD FETCH_HEAD && echo "Up-to-date" && exit
  5. git pull --quiet
  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"