File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes rsync in linux to scp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "rsync in linux to scp" Watch "rsync in linux to scp" New topic
Author

rsync in linux to scp

Rahul Dhaware
Greenhorn

Joined: Aug 13, 2008
Posts: 22
Hi All,

I want to rsync two folders which are on two different linux servers.
I want to rsync both folders on both way.

consider, i have on SRC server. on that there is a folder /home/username/src_folder
and there are 4-5 folders under /home/username/src_folder.
like

/home/username/src_folder
|
-->folder1/
|
-->folder2/
|
-->folder3/

On DEST server i have same folder structure as above.

Now if i have added any file like 'file2' in folder2 on SRC server then it should be automatically copied on folder2 of DEST server. same as vice-versa.

how can i do this?

Please help me.

Thanks advance.
Rahul Dhaware
Greenhorn

Joined: Aug 13, 2008
Posts: 22
Can any one please help me?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rsync in linux to scp