Solved

Transfer files from one server to another

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

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.…
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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