![]() |
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!
|
man crontab
|
*/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. |
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: |
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