![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Registered User
Join Date: Jan 2005
Location: NYC
Posts: 70
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
The Hustler
Join Date: Feb 2005
Posts: 4,993
|
man crontab
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
|
*/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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
|
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. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Join Date: Jan 2005
Location: NYC
Posts: 70
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |