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.

daily backup +cpbackup-exclude.conf +skipquotacheck

Discussion in 'Data Protection' started by Jalal Hoseini, Jun 10, 2015.

  1. Jalal Hoseini

    Jalal Hoseini Member

    Joined:
    Apr 17, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Armenia
    cPanel Access Level:
    Root Administrator
    Hello,
    I hame some backup bash script, to backup my hosts on cPanel server.
    its was using /scripts/pkgacct
    but as you know /scripts/pkgacct does not support the cpbackup-exclude.conf
    in other word, you cant specify to /scripts/pkgacct to do not backup the excluded files / directories.
    so, I had to switch from /scripts/pkgacct to /usr/local/cpanel/scripts/pkgacct
    it was fine, but now I see its not making backup for users that filled quota.
    in other word, if you have 100 host accounts, and 5 of them are out of quota, you will have 95 backup files, and it will not provide you backup for the 5 overloaded quota hosts.
    I need some way, to skip quota check, and support the cpbackup-exclude.conf.
    just tell me if you have any solution.
    regards
    Jalal
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    These are the same files. The "/scripts" location is just a symbolic link to "/usr/local/cpanel/scripts". Have you considered using the backup option available in Web Host Manager under "Backup Configuration"?

    Thank you.
     
    Jalal Hoseini likes this.
  3. Jalal Hoseini

    Jalal Hoseini Member

    Joined:
    Apr 17, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Armenia
    cPanel Access Level:
    Root Administrator
    Oh, sorry
    I mean :
    I switched from /scripts/pkgacct , to /usr/local/cpanel/scripts/pkgacct USER /home userbackup
     
  4. Jalal Hoseini

    Jalal Hoseini Member

    Joined:
    Apr 17, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Armenia
    cPanel Access Level:
    Root Administrator
    Yes, but that does not support the cpbackup-exclude.conf placed on user home dir.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    This method should actually respect the exclusion entries in the /home/$username/cpbackup-exclude.conf file.

    Thank you.
     
  6. Jalal Hoseini

    Jalal Hoseini Member

    Joined:
    Apr 17, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Armenia
    cPanel Access Level:
    Root Administrator
    No! its not supporting. you can test it.
    screenshot attached.
     

    Attached Files:

  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The output you provided indicates you used "/scripts/pkgacct" to generate the archive as opposed to the backup option available in Web Host Manager under "Backup Configuration", which is what I'm referring to.

    Thank you.
     
  8. Jalal Hoseini

    Jalal Hoseini Member

    Joined:
    Apr 17, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Armenia
    cPanel Access Level:
    Root Administrator
    Yes, but I need to use some command line backup tools.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Right, this feature is not possible with /scripts/pkgacct. There's no other workaround beyond configuring backups in Web Host Manager and forcing a generation of backups via:

    Code:
    /usr/local/cpanel/bin/backup --force
    Thank you.
     
Loading...

Share This Page