welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 167 forks source link

Excluding folders issue #223

Closed defaria closed 8 years ago

defaria commented 9 years ago

I told wordmove to exclude the folder images:

exclude:

After adding the folder images to the exclude list, I pushed it to my dev server. The website loaded and told me that it could not find wp-includes/images

So it excluded the images folder in the root, but also excluded the wp-includes images folder.

So I removed "images/" from the exclude list, and pushed again, and now the images folder synced.

I am using Wordmove 1.2.0 (because I am having other issues with 1.3.1).

Do I need to specify the full path? Or am I entering the path wrong?

Update: I just noticed that wordmove ended up excluding all folders named images (not only wp-includes/images).

kobrix commented 8 years ago

My understanding is that it follows the pattern used by rsync, so:

"images/" excludes any folder anywhere called "images" "/images/" excludes the folder "images" in the root directory "/images" excludes the file "images" in the root directory

In other words, a trailing slash means the preceding is a folder, and a leading slash means start at the root.

I hope a late answer isn’t too late!

alessandro-fazzi commented 8 years ago

What @kobrix said here was exact. We does not actually follow the rsync pattern, but we just prox options to rsync. So how rsync works is exctly how we (would like to) work.

I'll close this.