LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Perl/Linux: Syncronize tree structure on network (https://www.linuxquestions.org/questions/programming-9/perl-linux-syncronize-tree-structure-on-network-379839/)

kenneho 11-04-2005 03:34 AM

Perl/Linux: Syncronize tree structure on network
 
I'm writing and testing a distributed program, and need a way to syncronize the source code files on one machine with the source code on machines on the network. The idea is to have each remote machine build the project itself after having its source files updated.

I'm doing the actual implementation on one machine (let's call it A), but want the remote machines on my LAN to build and run it. The source code of the project consist of multiple folders. Therefore, I need a script (or some other way of doing this) that syncronizes the files and folders on the remote machines with the files and folders of machine A.

Does anyone know of a fast and effective way of doing this?

kenneho 11-04-2005 04:42 AM

Okay, I think I figured it out. THIS is where the rsync-command (as someone mentioned in a reply to one of my posts) come in handy. Just sync the whole folder tree, and everything is fine.


All times are GMT -5. The time now is 09:30 PM.