Operating System - HP-UX
1826663 Members
2475 Online
109696 Solutions
New Discussion

directory synchronization

 
Bruce Vanderford_1
New Member

directory synchronization

Here is my problem,
I need to share 20 Gigs of data to my sister plant acrross the country and I only have a 384 pipe line. By using nfs mount the speed is very slow to access the data, so I want to dump a full copy of the data to the second location. I need to keep this data in sync with my local data so I want to only give them new files or files that have been modified. I will rcp the data during off hours but how can I compare the two differant volumes and give the second location modified or new files only. I do not have an oracle data base so can I get constructive and do this with the find comand?

5 REPLIES 5
Victor BERRIDGE
Honored Contributor

Re: directory synchronization

Hi,
I would try to use pax to do what you want since its capable of creating new archive with only what has been modified, well I think have a look at man pax
Good luck
Victor
Mike Williams_3
Advisor

Re: directory synchronization

I would use rsync which does a similar thing.

Look in http://rsync.samba.org/

Mike
James A. Donovan
Honored Contributor

Re: directory synchronization

I also recommend rsync. It's especially good at transferring only the data needed to keep each side in sync. You'll need gcc (or, if you have it, you can probably use HP's ANSI c) to compile it. You can get gcc from http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-2.95.2/

Be sure you grab the binutils dependency as well.
Remember, wherever you go, there you are...
Tom Danzig
Honored Contributor

Re: directory synchronization

I would look into rdist. This works well for keeping two directories in sync. Do "man rdist"
Tim Malnati
Honored Contributor

Re: directory synchronization

rsync is good, but I would suggest rdist is far better in this situation. It allows you to create a map of specific files/directories and will not retransmit files that are already in sync. It also has the ability to remotely spawn a script or other program to perform any special processing you may want performed on a file after it has been transmitted. The PD version has a few more capabilities that the HPUX version does not and has the ability to move data between different unix flavors.