Created
June 23, 2017 02:03
-
-
Save davemac/58628778f5e2ad12dcc94c140a3e2503 to your computer and use it in GitHub Desktop.
rsync wp uploads directory from staging to current site
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
# rsync wp uploads directory from staging to current site | |
getups() { | |
current=${PWD##*/} | |
cd ~/Sites/$current/wp-content/uploads | |
rsync -avzW --progress --exclude '*.pdf' $current-s:~/www/wp-content/uploads/* . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment