GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need Help to rsync 2 servers? Thx (https://gfy.com/showthread.php?t=434941)

VidTec 02-21-2005 08:01 PM

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!

sickbeatz 02-21-2005 08:01 PM

man crontab

rickholio 02-21-2005 08:56 PM

*/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.

rickholio 02-21-2005 08:59 PM

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. :2 cents:

VidTec 02-21-2005 09:01 PM

Thanks for the tips... I appreciate it


All times are GMT -7. The time now is 05:48 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123