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.

Backup configuration for accounts less than 2gb

Discussion in 'Data Protection' started by persianwhois, Jul 14, 2010.

  1. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    Backup all account below than 2gb data

    Do you have any idea for make backup from all account below than 2gb data?
    Its mean i dont need to make backup from accounts more than 2gb data.
    Help me please.
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    In WHM backup you can manually select who you do or do not backup, but there is no automatic way to have it pick based off of size.

    Have you tried using uncompressed backups? Assuming that your issue is not the space uncompressed are a lot more efficient.
     
  3. InterServed

    InterServed Well-Known Member

    Joined:
    Jul 10, 2007
    Messages:
    255
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    DataCenter Provider
    Can be easily be done via bash script (this will exclude accounts that are higher or equal to 2GB):

    Code:
    #!/bin/bash
    
    max_size="2097152" # This is 2097152KB or 2GB
    
    for u in `ls /var/cpanel/users/`;
     do
      size=$(repquota -a | grep ${u}|awk '{print $3}'|sort -k 1 -nr|head -1);
      if [ "${size}" -ge "${max_size}" ];
      then
        echo "${u}" >> /tmp/cpbackup-userskip.conf;
      fi;
    done;
    
    sort -u /tmp/cpbackup-userskip.conf /etc/cpbackup-userskip.conf > /tmp/cpbackup-userskip.conf.uniq;
    cp -f /tmp/cpbackup-userskip.conf.uniq /etc/cpbackup-userskip.conf;
    rm -f /tmp/cpbackup-userskip.conf*;
     
  4. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    Where is backup script location?
     
  5. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    How can limit cpanel backup to 2gb?
    Its mean, create backup only for hosting below than 2gb datas.
     
  6. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    Any idea?!
     
  7. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    Is it true?!

    Code:
    cPanel default limit is 4gb per acct if i recall correctly.
    
    You cant increase or decrease this. Well atleast theres no way in WHM/cPanel to modify it.
    
     
  8. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    Why cpanel staffs unable to answer my questions? :confused:
     
  9. Bahram0110

    Bahram0110 Well-Known Member

    Joined:
    Dec 12, 2007
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    hatman balad nistan :d
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You've posted 5 times to this thread on a weekend. This is also not the official support channel. If you need support from cPanel, you might like to have this link: Where should I go for support? - cPanel Inc.


    I have merged your older thread into the new thread from this weekend as both topics were identical.
     
  11. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    This is not a current feature of cPanel, and I cannto speculate if it will ever be something that is available as I do not work for cPanel.

    In the mean time, InterServed provided you with a very workable solution almost two months ago which you can run periodically via cron or use as a wrapper around /scripts/cpbackp.
     
Loading...

Share This Page