The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rysnc

Discussion in 'General Discussion' started by ShockHosts, Nov 25, 2005.

  1. ShockHosts

    ShockHosts Well-Known Member

    Joined:
    Nov 25, 2005
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    I have seem many experienced users over this board talk about a Backup Script called
    Rysnc. I have searched on google for information but haven't had much luck....

    If anyone could explain why it is better then cPanel Backup Script....
    I will be using the backup script to backup all accounts on the server to a remote server.
    I need all the files,databases and setting to be taken as well....

    Kind regards,

    Josh Crick

    Note: Some accounts are up to 15GB in size.
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    "rsync is a command line utility that is used to synchronize files between two computers over a network to synchronize files between two filesystems." rootprompt.org

    For more information about Rsync, go to:
    http://rootprompt.org/article.php3?article=8976
    and/or
    http://www.jdmz.net/ssh/index.html

    Hope this helps!
     
  3. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    The short answer:

    Rsync does a comparison of two files and transfers only the changes in those files. So, rather than having to transfer the entire backup again, those few bits that have changed are copied, drastically saving bandwidth and backup time.

    The problem, however, is that full backups in cPanel use gzip compression. Because of the normal compression algorithm, even a relatively minor change in the uncompressed file(s) can make a major change in the compressed file, rsyncing a gzip'd file will usually transfer nearly the whole thing, negating the benefits of rsync.

    What I've found recently, however, is that later versions of gzip have been built to rectify this situation a bit, making the gzip'd files more rsync friendly. How this works with cPanel's backup is yet to be nailed down. It may mean modifying the backup script or ???

    Ok, so not such a short answer ;)
     
  4. ShockHosts

    ShockHosts Well-Known Member

    Joined:
    Nov 25, 2005
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Thank you for your links and answers....

    I think Rysnc isn't what I am looking for.....

    Here is my situtation:

    Everytime I use cPanel Backup Script to backup to a remote server it excludes the MySQL Databases....

    I need to be able to Backup to a remote server and still get the Home Dir and MySQL Dbs...

    Any Suggestions?
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  6. sleddog

    sleddog Active Member

    Joined:
    Jun 13, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Labrador, Canada
    I run a nightly root cronjob on the production machine that:

    - does a mysqldump of databases, storing gzipped sql files in a trusted user account area;
    - copies /etc/valiases, etc. to the same trusted account;

    Then from my home box (where backups are stored) a cronjob runs rsync over ssh an hour later, and syncs all accounts. Currently there's 38 accounts and rsync is done in about 6 minutes (over a DSL connection rated at 1.5mbps).
     
  7. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    www.webhostgear.com

    Something simple - for many is to use WHM Backup


    you will of course first need to copy whatever is needed to a directory / from a directory but this is a simple way of doing backups for ya...
     

Share This Page