A web script exists on the file system as a normal set of files or in the repository as content (or in a JAR, but I assume we're talking about one of the first two cases here).
So the copy part is just a copy. Use either cp on the file system or the copy action in the Alfresco user interface.