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.

For the fastest possible restore what files can be excluded in cpanel rsync backup tool?

Discussion in 'Data Protection' started by DWHS.net, Sep 15, 2014.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    I have a customer that is very concerned with the speed of restoring a back up for the rcync backup tool in CPanel. He copies his files to an out of state server so he would like the least amount of files backed up as possible. But of course he wants his site top work normally.

    Can you think of any files and folders that we could add to the exclude list to substantially speed up the backup restore process.

    For example:

    .core files
    Anything in the trash folder
    maybe the Email storage folders?
    Error_log files?

    If you could post any ideas and the code to enter into the .exclude file that would be amazingly helpful.
     
  2. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    If I wanted to block a mail folder like

    daily/*/homedir/mail/*/*/cur/*.*.*

    Would this work?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Core files are already excluded based on the following entry in /usr/local/cpanel/etc/cpbackup-exclude.conf:

    Code:
    */core.[0-9]*
    However, please keep in mind that if you initiate a Home Directory backup in cPanel (Home >> Backups >> Download a Home Directory Backup), the global and local exclude files will not affect the contents of the backup file. This is documented here:

    How to Exclude Files From Backups

    Thank you.
     
  4. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Thanks that helps a lot.

    If anyone else has an idea of what can be ignored that will allow for faster restoration please let me know.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Files that don't change a lot are obvious choices I think. Say he has 4GB of MP3s on his account, he uses the account to back up his music, and he has a website. If the website ran into trouble, he'd want a backup of files and database for it of course. The 4GB of music though, that's not going to be affected by a site issue.

    It really depends on what all he's got on the account. The account configuration itself, mail, site files and databases are most important. Everything else is storage for the most part. What he leaves behind depends on what it is.
     
Loading...

Share This Page