Find the answer to your Linux question:
Results 1 to 3 of 3
Hi Folks, I have the following scenarion: Red Hat Server 64bit on the LAN where admin can save various files into 2 directories. Red Hat Server 32bit on the Web ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    6

    Remote File Sync Utility ??


    Hi Folks,
    I have the following scenarion:
    Red Hat Server 64bit on the LAN where admin can save various files into 2 directories.
    Red Hat Server 32bit on the Web where users can save various files into 2 directories.

    I am looking for a utility or solution which I can run on the LAN server and will 2-way sync the files between its own version of the folder and the remote servers version of the folder.

    Maybe some utility that will run a cron job once or twice per day to ensure that the directories on both Servers contain exactly the same files - proper 2 way sync

    Anyone got any ideas or suggestions?

    Cheers All

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    rsync

    Blll uuuu !@#$%^& (this is to make my message at least 10 characters long)

  3. #3
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,392
    rsync can be used, of course.
    However, two way sync is requested, so one might use unison.

    But to be honest, I question the creation of redundant data and also the setup.
    To me it is not entirely clear, if it is this:

    Setup A)
    ------------
    - LAN-Server
    + admin-directory 1
    + admin-directory 2
    + user-directory 1
    + user-directory 2

    - INET-Server
    + admin-directory 1
    + admin-directory 2
    + user-directory 1
    + user-directory 2

    or
    Setup B)
    ------------
    - LAN-Server
    + directory 1
    + directory 2

    - INET-Server
    + directory 1
    + directory 2


    In case of B)
    You say, _only_ admins will access the dirs on LAN Server, r8?
    Then why not just let them acess the INET server, therefore avoiding redundancy.

    Or is this not possible because of bandwidth (cost, throughput) between LAN/INET?

    Also, some notes:
    - Not all files are good for replication through rsync/unison
    * live database files
    * cvs/svn/<whatever> repository files
    * logfiles
    - even with rsync/unison you might run into situations where you have to resolve conflicts.
    Imagine a file (aka ONE filename) has been updated in the same directory on both servers on the same day.

    lots of questions, for something so simple as a file copy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •