Need to create folders with hostnames in destination and copy files server wise


We got a requirement to move files from all servers to a shared drive. We are able to copy from all servers to single location.

But the exact requirement is to copy files to shared location, in that location individual folders need to be created with host names and copy files server wise…

Is there a possibility to copy files by creating folders serverwise in destination?