daily backup +cpbackup-exclude.conf +skipquotacheck

Jalal Hoseini

Member
Apr 17, 2015
6
0
1
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
so, I had to switch from /scripts/pkgacct to /usr/local/cpanel/scripts/pkgacct
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.
 
  • Like
Reactions: Jalal Hoseini

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Yes, but that does not support the cpbackup-exclude.conf placed on user home dir.
Hello,

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

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Yes, but I need to use some command line backup tools.
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.