Solved

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

Posted on 2013-01-09
5
446 Views
Last Modified: 2013-01-14
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
Comment
Question by:PKTG
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 38760404
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
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 38760410
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
 

Accepted Solution

by:
PKTG earned 0 total points
ID: 38761039
The below command worked for me. Thanks.

cp -r  \\ServerName\Test\  \\10.xx.xxx.1\
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38761052
Ok, good.

Do you want to run a loop?
0
 

Author Closing Comment

by:PKTG
ID: 38773848
My solution worked for me. Thanks for giving idea.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question