I have a server with Ubuntu 18.04
I want to transfer my website to a new server.
Here are my questions :
How to copy files with png extension ? I tried the following command line but it doesn't work :
$ sudo scp -r -p firstname.lastname@example.org:/var/www/www-example-com/web/*.png/ /home/ubuntu/www-example-com/web/
How to copy the following folder excluding a folder inside ?
$ sudo scp -r -p email@example.com:/var/www/www-example-com/web/themes/custom/ /home/ubuntu/www-example-com/web/themes/custom/
I want to exclude the below folder from the above folder :