Current time: 11-25-2024, 09:13 AM Hello There, Guest! (LoginRegister)


Post Reply 
Daily Backups Consume Diskspace Quota
Author Message
Sweeny Offline
Junior Member
*

Posts: 74
Joined: Oct 2007
Reputation: 1
Post: #2
RE: Daily Backups Consume Diskspace Quota
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
(This post was last modified: 03-20-2008 03:37 AM by Sweeny.)
10-24-2007 11:48 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Daily Backups Consume Diskspace Quota - Sweeny - 10-24-2007 11:48 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)