incremental backups are counted against the clients quota

akiyuki

Member
Dec 2, 2003
5
0
151
I got a problem for incremental backups.
My customer complain to us that his disk usage shows double.
I checked server, backup data was counted against the clients quota.
I am using incremental backups,
CPanel looks like counted the space used based on the account user, so all files owned by user count in the quota usage.
anybody knows how to fix this issue?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
Put the backup directory on a separate partition. As long as it is on the same partition as /home all files will count against the users qutoa.
 

yapluka

Well-Known Member
Dec 24, 2003
301
2
168
France
cPanel Access Level
Root Administrator
I'm using the incremental backup as well and for some of my servers, the backups are stored in the /home/ partition, though /home/cpbackup/* is owned by root and the files don't count against user's quota.

What you could do is create /scripts/postcpbackup if it doesn't exist, chmod it 700 and add there :

Code:
#!/bin/bash
chown -R root.root /<<path to your>>/cpbackup/
This should fix your issue :)
 

akiyuki

Member
Dec 2, 2003
5
0
151
Thanks for solution.
I will try to change permision.
However my backup directory is not include home.
Directroy name is /popwonder.
I do not why it's happen.
 

macooper

Member
May 3, 2004
14
0
151
cpanel uses the quota system of the OS for keeping track of disk usage. If your backups are on their own partition, not shared with anything else, you need to turn off the quota for that partition. Login as root and run the command :

quotaoff /backup

replacing /backup with the name of your backups partition. This will only work if /backup is it's own partition, it is not possible to turn of quota's on a per directory basis.

HTH