Any details on this?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?Edge 30943 2008-11-12 08:45:58
Added support for per-user cpbackup-exlude.conf to exclude items from backup
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.
Thx .. i hoped for something similar to this http://bugzilla.cpanel.net/show_bug.cgi?id=8029
That would add quite a bit of overhead to the backup process as each individual file would need checked against the threshold.
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.
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.
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:
The cpbackup-exclude.conf is for skipping individual files and directories, not accounts.Code:user1 user2 user3
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.