Last active
August 29, 2015 14:19
-
-
Save dylanized/d742dc621e2dd12db622 to your computer and use it in GitHub Desktop.
WPEngine command line sync function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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