Skip to content

Backup File is displaying negative file size on Raspberry Pi-4 #590

@SitesByYogi

Description

@SitesByYogi

User submitted:

I did a backup with “file list analysis”,. The filelist.log does not show any anomalies.
The file size in the backup overview is -25290772 B.

The archive.log mentions: “[2024-05-15 07:06:01 UTC] Archive filepath / size: /var/www/html/wp-content/boldgrid_backup_O8iL9XKdK2mT/boldgrid-backup-www.softpol.net-a5b7ba1e-20240515-060732.zip / -25290772 ()“

Linux sees the file as: “-rw——- 1 www-data www-data 4,0G 15 mei 09:06 boldgrid-backup-www.softpol.net-a5b7ba1e-20240515-060732.zip

The mail, I received after completion, says “Total size: 4.33 GB”.

FYI: this website is running on a Raspberry Pi-4. The CPU is of the type aarch64, but the OS is 32-bit Debian. I am afraid that you store the file size in an “int” type variable, with PHP_INT_MAX = 2147483647, while the size of the backup is 4269676524.
About the negative file size (on Raspberry Pi-4): this bug report may be helpful. It's a bug report, where casting on an int variable returned a negative free space value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions