Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2002
    Location
    Behind your monitor.
    Posts
    569

    how can I rsync a /home dir to another server via cron? [cPanel]

    how can I rsync a /home dir to another server via cron?

    I have a high load site and am thinking rsyncing it to anther server via cron and using round robin might be a temp fix to some of the load issues while we go through and optimize the databases and other issues.

    Anyone know of a good how-to or willing to share any thought on if this is a good route?
    GlowHost → Affordable Managed Web Hosting Since 2002.
    ۪Cloud Servers- Hot Failover + Clustered Storage
    ¬Managed Dedicated Servers - Semi-Dedicated Servers
    ۪Shared & Reseller packages - 20 Min Ticket Response - 24/7/365 Phone & Live Chat

  2. #2
    Join Date
    Feb 2002
    Location
    Vestal, NY
    Posts
    1,381
    rsync uses SSH so you can setup a public/private key on the 2 machines so root can SSH in without a password.

    This question was answered here too:

    http://www.webhostingtalk.com/archiv...d/92903-1.html
    H4Y Technologies LLC .. Since 2001!!
    "Smarter, Cheaper, Faster" - SMB, Reseller, VPS, Dedicated, Colo hosting done right.

    ZERO PACKETLOSS, ZERO DOWNTIME Dedicated and Colo - USA: IA, CA, NC, OR, NV
    **http://h4y.us** **http://iwfhosting.net**
    Voice: (866)435-5642. *** askus at host4yourself d0t com

  3. #3
    Join Date
    Sep 2002
    Location
    Behind your monitor.
    Posts
    569
    So rsync is simply responsible for the keys/authentication and then I would need to have some sort of script to wget and extract the files on the second server?

    My problem is this is a large site with lots of users and database activity. Perhaps this is not the best solution.

    Perhaps if one server acted as a database server and the other handled Apache and PHP requests.

    I am getting obscene server load spikes and am trying to balance the loads without hardware load balancers. I cant seem to find a good method for a server with a heavt db usage.

    Perhaps hosting the db on one server and then round robin the rest of the requests among the 2 might work, but the sites being out of sync until rsync (or whatever solution) in the meantime presents a problem.

    thoughts?
    GlowHost → Affordable Managed Web Hosting Since 2002.
    ۪Cloud Servers- Hot Failover + Clustered Storage
    ¬Managed Dedicated Servers - Semi-Dedicated Servers
    ۪Shared & Reseller packages - 20 Min Ticket Response - 24/7/365 Phone & Live Chat

  4. #4
    Join Date
    Feb 2002
    Location
    Vestal, NY
    Posts
    1,381
    Look into using NAS (network attached storage) or NFS mounts to syncronize. With NFS (network file system), you don't need extra hardware. You might want to search google for an NFS how-to.
    H4Y Technologies LLC .. Since 2001!!
    "Smarter, Cheaper, Faster" - SMB, Reseller, VPS, Dedicated, Colo hosting done right.

    ZERO PACKETLOSS, ZERO DOWNTIME Dedicated and Colo - USA: IA, CA, NC, OR, NV
    **http://h4y.us** **http://iwfhosting.net**
    Voice: (866)435-5642. *** askus at host4yourself d0t com

Posting Permissions

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