Skip to content

Instantly share code, notes, and snippets.

@dylanized
Last active August 29, 2015 14:19
Show Gist options
  • Save dylanized/d742dc621e2dd12db622 to your computer and use it in GitHub Desktop.
Save dylanized/d742dc621e2dd12db622 to your computer and use it in GitHub Desktop.
WPEngine command line sync function
function push_to_wpengine {
domain="sftp://"
user=""
password=""
localpath=""
remotepath="" # no initial slash
lftp $domain -u $user,$password -e "mirror --reverse -c --parallel=4 --delete --verbose --no-perms --exclude-glob .DS_Store '$localpath' $remotepath; bye"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment