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/

Last updated by at .

Leave a Reply

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