Solved

Transfer files from one server to another

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

680 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