Skip to content

Instantly share code, notes, and snippets.

@drkibitz
Last active December 20, 2015 00:39
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 drkibitz/6043408 to your computer and use it in GitHub Desktop.
Save drkibitz/6043408 to your computer and use it in GitHub Desktop.
lftp mirror wordpress in jenkins
git checkout $GIT_BRANCH
git pull --rebase origin $GIT_BRANCH
lftp -e "open mybookmark; mirror -a --verbose=1 --parallel=10 --use-pget-n=3 --delete --only-newer --exclude .git --exclude .svn --exclude ^cgi-bin/$ --exclude ^wp-content/cache/$ $WORKSPACE; quit;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment