About Using Wildcards with the SCP Command

You can upload or download multiple files with SCP (Secure Copy) command using the wildcard (*) syntax as in these examples:

Upload data fixtures

$ scp *.json myproject@the_server:/var/webapps/myproject/data/

Download logs

$ scp myproject@the_server:/var/webapps/myproject/logs/*.log ./

Tips and Tricks Dev Ops SSH scp