This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes copy difference file from one server to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "copy difference file from one server to another" Watch "copy difference file from one server to another" New topic
Author

copy difference file from one server to another

amol Bhandwale
Greenhorn

Joined: Jul 12, 2010
Posts: 4
Hi All,

I have following scenario.

On WEB1 there is a folder /usr/share/Shipment_Doc

On WEB2 there is a folder /usr/share/Shipment_Doc

On WEB2 there are some files which are not present on WEB1.

I want a script copy those file which are not present on WEB1 from WEB2.


Thanks,
Amol.




Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

If this is something you need to do on a regular basis, check out "rsync" (type "man rsync".)


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: copy difference file from one server to another
 
Similar Threads
Apache virtual Host Problem
websphere assembly and deployment question
classpath for multiple web application.
Context Paths in web clients of enterprise applications
The Standard J2EE Build Script