Skip to content

Instantly share code, notes, and snippets.

@Triloworld
Created December 13, 2019 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Triloworld/f93c2463736660b2541161eb8d63ca8d to your computer and use it in GitHub Desktop.
Save Triloworld/f93c2463736660b2541161eb8d63ca8d to your computer and use it in GitHub Desktop.
#As first script
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/lftp.sh | bash -s
#As second script - use enviroment
# Options for LFTP
#echo "debug" >> ~/.lftprc;
#echo "set log:enabled true" >> ~/.lftprc;
echo "set ftp:ssl-protect-data false" >> ~/.lftprc;
echo "set ftp:ssl-force false" >> ~/.lftprc;
echo "set ftp:ssl-allow false" >> ~/.lftprc;
echo "set ssl:verify-certificate no" >> ~/.lftprc;
echo "set ftp:timezone ''" >> ~/.lftprc;
#echo "set net:max-retries 0" >> ~/.lftprc;
#echo "set net:connection-limit 1" >> ~/.lftprc;
lftp -c "open -u $FTP_USER,$FTP_PASSWORD $FTP_HOST; mirror --use-cache -x \.git.+ `sed 's/^/-X /' .gitignore | tr '\n' ' '` -R ~/clone/ /domains/$DOMAIN/public_html/";
@Triloworld
Copy link
Author

Error: hang out too long - if SSL isn't properly set by settings or certs don't match. No logging available - one of reason to leave service
Error: GitHub manually revoke access - no way to re-enable it by adding service back per repository & project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment