Solved

Transfer files from one server to another

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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

11 Experts available now in Live!

Get 1:1 Help Now