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.

cpbackup-exlude.conf

Discussion in 'Data Protection' started by Rubas, Nov 12, 2008.

  1. Rubas

    Rubas Well-Known Member

    Joined:
    Sep 15, 2003
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
    Any details on this?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Directory entries in that file will be skipped by pkgacct. One entry per line, without a trailing slash.

    You have to create it in the user's home directory.
     
  3. Rubas

    Rubas Well-Known Member

    Joined:
    Sep 15, 2003
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    That would add quite a bit of overhead to the backup process as each individual file would need checked against the threshold.
     
  5. Rubas

    Rubas Well-Known Member

    Joined:
    Sep 15, 2003
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
    You would have to generate a list of all files for backup (find all files smaller then < x in folder y) instead of simple tar the whole folder at once.

    I'm not sure what's the best way to achieve this goal .. delete the big files after pkgacct from the archiv is not desirable a option.
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    On examining this further I realize that you can add both directories and files to the cpbackup-exclude.conf file.
     
  7. Rubas

    Rubas Well-Known Member

    Joined:
    Sep 15, 2003
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
    So .. the only missing part is now the option to define some general rules for pkgacct to generate this exlude files ahead of the backup process
    I would love to see a integrated version instead of a 3rd party script for this.
     
  8. tandyuk

    tandyuk Active Member

    Joined:
    Dec 18, 2003
    Messages:
    32
    Likes Received:
    1
    Trophy Points:
    8
    I have several accounts which are (now) excluded from the daily backup.

    IMHO the backup script should check for these, and if a prevously done backup exists, it should be deleted.

    After a quick scan on /backup, I have 11 backups from users which now have an exclude file, so no new backups are done, but the ones done before the exclude file was added total 15gb!
     
  9. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If you want to skip entire accounts then either:

    1. Use the "Select Specific Users" option in WHM >> Backup ( look a the bottom of the interface ); or
    2. Add the users you want skipped to /etc/cpbackup-userskip.conf The format is:
    Code:
    user1
    user2
    user3
    
    The cpbackup-exclude.conf is for skipping individual files and directories, not accounts.

    EDIT:
    After re-reading your post I believe I misread it the first time. Deleting account backups is something the Admin must do. You can add your own code to do this via /scripts/precpbackup
     
    #9 cPanelKenneth, Jul 2, 2009
    Last edited: Jul 2, 2009
Loading...

Share This Page