Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    146

    Default cpbackup-exlude.conf

    Edge 30943 2008-11-12 08:45:58
    Added support for per-user cpbackup-exlude.conf to exclude items from backup
    Any details on this?

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #3
    Member
    Join Date
    Sep 2003
    Posts
    146

    Default

    Thx .. i hoped for something similar to this http://bugzilla.cpanel.net/show_bug.cgi?id=8029

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    That would add quite a bit of overhead to the backup process as each individual file would need checked against the threshold.

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    146

    Default

    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. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Rubas View Post
    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.
    On examining this further I realize that you can add both directories and files to the cpbackup-exclude.conf file.

  7. #7
    Member
    Join Date
    Sep 2003
    Posts
    146

    Default

    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. #8
    Member
    Join Date
    Dec 2003
    Posts
    30

    Default

    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. #9
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by tandyuk View Post
    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!
    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
    Last edited by cpanelkenneth; 07-02-2009 at 09:45 AM. Reason: Misread post
    Kenneth
    Product Development
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. pkgaccount and cpbackup-exclude.conf
    By TaneNZ in forum Data Protection
    Replies: 9
    Last Post: 08-01-2011, 03:57 PM
  2. Trouble with cpbackup-exclude.conf file.
    By crazyfish in forum Data Protection
    Replies: 6
    Last Post: 07-13-2010, 08:32 AM
  3. cpbackup-exclude.conf format, missing something?
    By Lyttek in forum Data Protection
    Replies: 6
    Last Post: 03-15-2010, 08:42 AM
  4. cpbackup-exclude.conf oddness
    By stuartmcdonald in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 02-05-2010, 03:23 PM
  5. cpbackup-exclude.conf format
    By deadlock in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-30-2008, 04:29 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube