FD_F Posted October 29, 2010 Share Posted October 29, 2010 hi, how i can rsync recorsive in one big folder only files name test.php and exclude all others i tryed rsync -av --dry-run /var/www/test/ --include='test.php' /var/www/test2/ Quote Link to comment Share on other sites More sharing options...
trq Posted October 29, 2010 Share Posted October 29, 2010 find /var/www/test -name test.php -exec rsync -av --dry-run {} /var/www/test2/ \; Quote Link to comment Share on other sites More sharing options...
FD_F Posted October 29, 2010 Author Share Posted October 29, 2010 thanks grate idea when i running find /var/www/test/ -name test.php -exec rsync -av --dry-run {} /var/www/test2/ \; i get only one test.php file when i run only find /var/www/test/ -name test.php i get : /var/www/test/deeptest/test.php /var/www/test/test.php so the find works any other ideas? Quote Link to comment Share on other sites More sharing options...
phpfreak Posted October 30, 2010 Share Posted October 30, 2010 rsync -varP --dry-run /var/www/test/ /var/www/test2/ --include=*test.php Try that one and see if it works.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.