scp transfer multiple files | local to remote | remote to local

Local to Remote: When you have to copy multiple files to your remote host from local, the syntax is similar to the cp command:

scp -r file1.txt file2.txt root@IP:/path/to/file

Remote to Local: To copy multiple files from remote host to your local:

scp -r  root@IP:/path/to/file{file1.txt,file2.txt} /path/to/file