Ticket #864 (closed defect: fixed)

Opened 1 year ago

Last modified 8 months ago

improve the detection of the disk usage of backups so users can't abuse

Reported by: raphael Assigned to:
Priority: trivial Milestone: ispCP ω 1.0.0 - RC4
Component: Backend (Engine) Version: ispCP ω 1.0.0 - DEV
Severity: Keywords:
Cc:

Description

Current code:

        my $size = 0;

        my $s = `$cmd_du --exclude="backups/*.bz2" -s -B1 $main::cfg{APACHE_WWW_DIR}/$domain_name`;

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

Translated to human comprehensible words: Give me the disk usage of /path/to/domain.tld excluding all files under backups/ which have a .bz2 extension

So any file under backups/ with a .bz2 extension is not counted for the disk usage limit

Attachments

Change History

11/29/07 23:15:03 changed by rats

  • version set to ispCP ω 1.0.0 - DEV.
  • milestone changed from ispCP ω 1.0.0 to ispCP ω 1.0.0 - RC4.

02/13/08 00:05:35 changed by rats

  • status changed from new to closed.
  • resolution set to fixed.

I hope it work's in r999.

changed to

ispcp-dsk-mngr line 106:

        my $size = 0;

        my $s = `$cmd_du --exclude="backups/$domain_name-*.bz2" --exclude="backups/$domain_name-*.gz" -s -B1 $main::cfg{APACHE_WWW_DIR}/$domain_name`;

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

Add/Change #864 (improve the detection of the disk usage of backups so users can't abuse)




Action