Current time: 04-20-2024, 07:59 PM Hello There, Guest! (LoginRegister)


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

Posts: 19
Joined: Oct 2007
Reputation: 0
Post: #1
Daily Backups Consume Diskspace Quota
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?
10-24-2007 11:18 PM
Find all posts by this user Quote this message in a reply
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
Buffer Offline
Junior Member
*

Posts: 19
Joined: Oct 2007
Reputation: 0
Post: #3
RE: Daily Backups Consume Diskspace Quota
Spot on. Thanks!
10-25-2007 12:01 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Daily Backups Consume Diskspace Quota
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
10-25-2007 04:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sweeny Offline
Junior Member
*

Posts: 74
Joined: Oct 2007
Reputation: 1
Post: #5
RE: Daily Backups Consume Diskspace Quota
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
(This post was last modified: 10-25-2007 05:14 AM by Sweeny.)
10-25-2007 04:49 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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