Solved

Transfer files from one server to another

Posted on 2010-08-14
4
333 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Learn about cloud computing and its benefits for small business owners.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

13 Experts available now in Live!

Get 1:1 Help Now