Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default how to exclude accounts from cpbackup?

    I have a script running daily that computes for the total usage of all the accounts in my server

    I am writing it in a file to keep track of it

    Now I want to insert in my script that if the account is more than 5 GB, i will exclude that account from cpbackup

    I know in scripts2/backupusers that i can select only the accounts that will be backed up by cpbackup

    but is there a file or database that is being referenced by scripts2/backupusers? And how i can access this file in my script such that if the total usage of an account is > 5 GB, my script will exclude this account from scripts2/backupusers (select users in cpanel's "backup")

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    No, you will have to write down your own code. If you could paste the code you use to compute the total usage of an account, people here can write down the necessary code for you to exclude the accounts over 5GB.

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default

    Quote Originally Posted by madaboutlinux View Post
    No, you will have to write down your own code. If you could paste the code you use to compute the total usage of an account, people here can write down the necessary code for you to exclude the accounts over 5GB.
    I just looped all the accounts from /home and use the php commands to compute for the total file size. IM using php code

    Basically all i need to do is find out where cpbackup stores the records of which accounts are checked when you go to WHM - Backups - Select Users

  4. #4
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default

    Found the file!

    It's /etc/cpbackup-userskip.conf

    Just put the cpanel username here per line and that's it

Similar Threads & Tags
Similar threads

  1. cpbackup-exclude questions
    By wallywest in forum New User Questions
    Replies: 1
    Last Post: 03-20-2010, 12:19 AM
  2. cpbackup-exclude settings - what could be wrong ?
    By legija in forum Data Protection
    Replies: 0
    Last Post: 11-18-2009, 04:48 AM
  3. cpbackup-exclude.conf format
    By deadlock in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-30-2008, 03:29 PM
  4. exclude pattern match from cpbackup
    By boatdesign in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-19-2007, 11:16 PM
  5. Issue with Cpbackup user exclude
    By fusioncroc in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-05-2006, 05:47 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube