Copying .php files with directory structure

Hi Team,

I have copied all .php files from /var/www/html/beta to /beta directory using the below command.

find -iname ‘*.php’ -exec cp {} /beta/ ;

I can see all .php files available in /beta directory. Not sure why this task got failed for me.

1 Like

you forgot to copy parent directories