• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Native command line `site` command does not correctly report disk space usage of backups

Paul Larson

Basic Pleskian
Username:

TITLE

Native command line `site` command does not correctly report disk space usage of backups

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Ubuntu 22.04
Plesk version 18.0.47

PROBLEM DESCRIPTION

I'm not sure why the site command does not report the proper disk usage of a backup.

STEPS TO REPRODUCE

Example:

/usr/local/psa/bin/site -i example.com | grep "Total size of backup files in local storage"
Total size of backup files in local storage:0 B

ACTUAL RESULT

Whereas, a standard UNIX command reports the proper usage:

du -sh /var/lib/psa/dumps/domains/example.com/
.6.0G /var/lib/psa/dumps/domains/example.com/

EXPECTED RESULT

The site command should not report 0 for a backup, when a Linux du command plainly reports the proper size.

ANY ADDITIONAL INFORMATION

(DID NOT ANSWER QUESTION)

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
@Paul Larson, could you check whether or not the option to include diskspace calculate "backup files created by the administrator" is enabled in Tools & Settings > Server Statistics Settings?

If not, enable the option and run plesk sbin statistics --calculate-one --domain-name=example.com to recalculate the diskspace usage for the domain. And try /usr/local/psa/bin/site -i example.com | grep "Total size of backup files in local storage" again.
 
Last edited:
Back
Top