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
Solved

Transfer files from one server to another

Posted on 2010-08-14
4
336 Views
Last Modified: 2012-05-10
Hi All

I have an application that logs daily files to CSV format every day. The application logs to C:\Applogs\ and the files are called <date>Log.csv. The server is called server1.domain.com

I need to copy each day's logs to another server - server2.domain.com

Can anyone advise of a suitable method to do this that is very straightforward? :)
0
Comment
Question by:bruce_77
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
Jon Conant earned 500 total points
ID: 33436322
You may want to try Robocopy ( http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx ) for this.  I've used it for many purposes.  It has GUI and command line interface and preserves security attributes (if needed).  It's in the Windows 2003 server resource kit.  I used it to migrate from one server to another and have in play for log files.  You can set it up and the run it from the automated task scheduler.

and it's free... hope this helps,  Jon
0
 

Expert Comment

by:hamadaabdelkader
ID: 33436342
you have to make to steps
1- share folder in server which you want to copy
2- make it as map drive in your application server
3- make patch file havung following command
move  C:\Applogs\*.*     (ap drive letter ):
make scheduler to run this patch dialy
0
 
LVL 2

Author Comment

by:bruce_77
ID: 33438018
thanks both

Robocopy seems the best way from what I can see...

Not sure how to set it up to run as an automated task scheduler though?

Also - is there anyway to send an notification email if the task fails (if this is complicated - no problem, i can raise another question)
0
 
LVL 1

Expert Comment

by:Jon Conant
ID: 33438627
Start>all programs>Accesories>systems tools>scheduled tasks   not too hard to figure out to schedule a task.

set up a command line run of the robocopy...actually richcopy is now the too'ls name.  You can look that up on microsoft.com downloads area.  I'm not a guru at batch files but can give basic assist if you need it.  You may not need to write a batch file, just have the task run the 'richcopy' command line.  Paranthesis is the biggest issue.  commands won't run if the parameters have spaces in or other non-standard characters.  there are examples if you do a search on "richcopy command line examples"

Notify might be a little more difficult.  Plenty of things out there to use in a batch file that can email or do other form of alert to sms text.  but not as simple.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 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