ispCP - Board - Support
Daily Backups Consume Diskspace Quota - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Daily Backups Consume Diskspace Quota (/thread-1612.html)



Daily Backups Consume Diskspace Quota - Buffer - 10-24-2007 11:18 PM

Hello,

Does the daily backups still consume the diskspace quota in ispcp? If not, how did you manage to drop out the backups-folder from the quota meter?


RE: Daily Backups Consume Diskspace Quota - Sweeny - 10-24-2007 11:48 PM

You can easily drop out the backupspace from diskquota in ispcp and vhcs Wink
Just add the following lines to vhcs2-dsk-quota or ispcp-dsk-quota:
Line 113 just add the differences
Code:
my $totalsize = `$cmd_du -sb $main::cfg{APACHE_WWW_DIR}/$domain_name`;

        $totalsize =~ /^(\d+)/; $totalsize = $1;

        my $backupsize = `$cmd_du -sb $main::cfg{APACHE_WWW_DIR}/$domain_name/backups`;

        $backupsize =~ /^(\d+)/; $backupsize = $1;

        my $size = $totalsize - $backupsize;

Greetings Sweeny


RE: Daily Backups Consume Diskspace Quota - Buffer - 10-25-2007 12:01 AM

Spot on. Thanks!


RE: Daily Backups Consume Diskspace Quota - joximu - 10-25-2007 04:44 AM

The customer then can put some private files also in the backup-folder - which are not counted in the quotas.

Maybe this has to be addressed in future versions...

/J


RE: Daily Backups Consume Diskspace Quota - Sweeny - 10-25-2007 04:49 AM

Write a little script which checks if the files in the folder contain "backup" a date and ".tar" and the problem with private files is solved Wink

And this solution is better than giving the user 2gb of space if he pays only for 1gb ....

Or another wonderful idea could be changing the permissions to read-only for the customer Wink