daily backup +cpbackup-exclude.conf +skipquotacheck
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
-
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.0 -
Oh, sorry I mean : I switched from /scripts/pkgacct, to /usr/local/cpanel/scripts/pkgacct USER /home userbackup 0 -
Have you considered using the backup option available in Web Host Manager under "Backup Configuration"?
Yes, but that does not support the cpbackup-exclude.conf placed on user home dir.0 -
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.0 -
Hello, This method should actually respect the exclusion entries in the /home/$username/cpbackup-exclude.conf file. Thank you.
No! its not supporting. you can test it. screenshot attached.0 -
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. 0 -
Yes, but I need to use some command line backup tools. 0 -
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:/usr/local/cpanel/bin/backup --force
Thank you.0
Please sign in to leave a comment.
Comments
8 comments