Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. InterServed

    InterServed Well-Known Member

    Joined:
    Jul 10, 2007
    Messages:
    261
    Likes Received:
    4
    Trophy Points:
    68
    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:
    166
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    Where is backup script location?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Mahallat
    cPanel Access Level:
    Root Administrator
    Any idea?!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. persianwhois

    persianwhois Well-Known Member

    Joined:
    Apr 18, 2007
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    166
    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.
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. persianwhois

    persianwhois Well-Known Member

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

    Bahram0110 Well-Known Member

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

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice