AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Directory Replication

    Posted Tue May 08, 2007 11:14 AM

    Originally posted by: SystemAdmin


    I have a central home directory mounted out from my NIM server. However the company has two sites, one for DR, so I have a second NIM server at the remote site with a central home directory as well for use on systems there.

    I wish to have a job once a day that sync's the two directories together - preferably just the changes. The filesystems in user are JFS2 and the AIX level are 5.3. Does anyone know of an easy way to acheive this without running a standard "cp" each night?

    Thanks,

    Sam


  • 2.  Re: Directory Replication

    Posted Tue May 08, 2007 12:29 PM

    Originally posted by: SystemAdmin


    I would look into using rsync. rsync will compare the two directories and copy over only the files that have changed.

    rsync is provided as a part of AIX Toolbox for Linux: http://www-304.ibm.com/jct03004c/servers/aix/products/aixos/linux/

    You can find documentation, a FAQ, and examples for rsync here: http://samba.anu.edu.au/rsync/


  • 3.  Re: Directory Replication

    Posted Tue May 08, 2007 07:32 PM

    Originally posted by: SystemAdmin


    Yep, bfveale is right on the money, rsync is your friend.


  • 4.  Re: Directory Replication

    Posted Tue May 08, 2007 11:37 PM

    Originally posted by: BruceSpencer


    rsync would be my first choice. However, you might be interested to know AIX 5.3 ML3 supports remote mirroring in the base operating system.

    http://www-03.ibm.com/servers/aix/whitepapers/aix_glvm.pdf