• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • Last Modified:

How to copy and paste folders and files from one server to other servers?

In one server we have folder name called TEST and it has some files. I want to copy and paste this folder and files in 10 another servers using unix tools.  I use to copy files from one server to another server using the below command. Can you please tell me how to move folders and files?
Thanks.

xcopy /Y \\soreceserver\test\*.* \\10.xx.xxx.1\test\
xcopy /Y \\soreceserver\test\*.* \\10.xx.xxx.2\test\

All servers  Operating system : Windows Server 2008 R2 Enterprise
All Servers has Unix tools in C Drive.
0
PKTG
Asked:
PKTG
  • 3
  • 2
3 Solutions
 
farzanjCommented:
You could use scp, if you have it.  

scp -r servername:/test/*  10.xx.xxx.1/test

Or something similar.  Then you can use a for loop to transfer the same files to many servers.
0
 
farzanjCommented:
If the files are on the local machine, you don't need the server name.  Just the path.

Can you see all the files by doing something like
ls /test/*
0
 
PKTGAuthor Commented:
The below command worked for me. Thanks.

cp -r  \\ServerName\Test\  \\10.xx.xxx.1\
0
 
farzanjCommented:
Ok, good.

Do you want to run a loop?
0
 
PKTGAuthor Commented:
My solution worked for me. Thanks for giving idea.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now