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.

exclude cpanel backups from daily etc backup

Discussion in 'General Discussion' started by MaRiOsGR66, Nov 27, 2012.

  1. MaRiOsGR66

    MaRiOsGR66 Well-Known Member

    Joined:
    Feb 18, 2011
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I want to exclude cpanel backup files places in /home/user/ directories from daily backups

    I've added this backup-

    in the exclude file but no luck, the backups still include other backup files.

    Any ideas?

    # cat cpbackup-exclude.conf
    backup-

    768M Oct 23 22:09 backup-10.23.2012_22-05-26_user.tar.gz
    507M Nov 15 05:29 backup-11.15.2012_05-19-53_user.tar.gz
     
  2. bbrink68

    bbrink68 Active Member

    Joined:
    Nov 27, 2012
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hello,

    Did you create the cpbackup-exclude.conf in the hone directory of the user whose files you want to exclude?

    Perhaps also try using wild cards like *.tar.gz

    Also keep in mind this only works on full site backups and not home directory backups. I'm sure you already seen this post but it really explains this well:

    http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/CpbackupExclude

    Good luck!
     
  3. MaRiOsGR66

    MaRiOsGR66 Well-Known Member

    Joined:
    Feb 18, 2011
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello my friend,

    >>Did you create the cpbackup-exclude.conf in the hone directory of the user whose files you want to exclude?
    yes, in server different users (home dirs)

    >>Perhaps also try using wild cards like *.tar.gz
    I wouldn't like that because that would included anything else uploaded by the client that it is compressed as tar.gz, I only want to exclude cpanel's backup files.

    >>Also keep in mind this only works on full site backups and not home directory backups. I'm sure you already >>seen this post but it really explains this well:
    >>Excluding Files from Backup Using cpbackup-exclude.conf

    Yes I know, I've allready red this, I just want not to include a single site x3 times in it's automated daily backup.

    so the question still remains.
     
  4. 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:
    This seems to work fine:
    backup-*.tar.gz

    I added it to the bottom of the list, here:
    /etc/cpbackup-exclude.conf
     
  5. MaRiOsGR66

    MaRiOsGR66 Well-Known Member

    Joined:
    Feb 18, 2011
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    OK I did that, hope that does the trick, I will check it in the next daily backup.

    thank you Infopro & bbrink68
     
Loading...

Share This Page