Copying new images from production WordPress site to stage

I find myself copying production databases over stage databases often. In WordPress the uploads directory needs to be copied as well, but I don’t want to copy old stuff over.

From production /wp-content/
cp -Rup uploads/* /websites/stage.somesite.com/public_html/wp-content/uploads/

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.