Need Help to rsync 2 servers? Thx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VidTec
    Registered User
    • Jan 2005
    • 70

    #1

    Need Help to rsync 2 servers? Thx

    I just added a second server and load balancing but want to know if anyone can help me set up a Cron job to sync my members htaccess files every couple mins. I appreciate the help!
    SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, you may use a 624x80 instead of a 120x60. Let me repeat... A 120 x 60 button and no more that 3 lines of DEFAULT SIZE AND COLOR text.
  • sickbeatz
    The Hustler
    • Feb 2005
    • 4993

    #2
    man crontab

    GalleryFeeder.com

    Comment

    • rickholio
      Confirmed User
      • Jan 2004
      • 1914

      #3
      */5 * * * * rsync -ave ssh /path/to/.htpasswd targetbox:/path/to/.htpasswd

      Turn on rsa key authentication so you don't have to deal with ssh asking for passwords.

      HTH. HAND.
      ~

      Comment

      • rickholio
        Confirmed User
        • Jan 2004
        • 1914

        #4
        I should point out though that if I was a new member and didn't get access for 5 minutes, I'd be fairly pissed... and if you let people in before the rsync, you'll have half of your images broken or bad page loads (one server will allow, the other will deny) if you're using basic authentication.

        You might want to consider other methods of validation, like a gateway/session cookie approach, or perhaps mod_auth_mysql or such.
        ~

        Comment

        • VidTec
          Registered User
          • Jan 2005
          • 70

          #5
          Thanks for the tips... I appreciate it
          SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, you may use a 624x80 instead of a 120x60. Let me repeat... A 120 x 60 button and no more that 3 lines of DEFAULT SIZE AND COLOR text.

          Comment

          Working...