Solved

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

Posted on 2013-01-09
5
440 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now