Skip to content

SizeDiffPreviousPercent isn't working as expected #182

@byalextran

Description

@byalextran

I noticed I was using an incorrect MySQL password in my configuration.

When I updated the password, I was expecting the next update to throw an error because I had SizeDiffPreviousPercent set to 10% and the previous file size was 45 bytes (encrypted, 0 bytes raw). However, no error got thrown even though the new file size is 300+% bigger than the previous. I changed the value to 1% and ran another test that also resulted in no error.

Here you'll notice the three file sizes in question.

-rw-rw-r-- 1 alextran alextran      45 Apr 14 03:00 rsh-2019-04-14_0700.sql.bz2.enc
-rw-rw-r-- 1 alextran alextran   14735 Apr 15 03:00 rsh-2019-04-15_0700.sql.bz2.enc
-rw-rw-r-- 1 alextran alextran      45 Apr 15 23:11 rsh-2019-04-16_0311.sql.bz2.enc

The first being the backup with the wrong password. the second the right password. And the third the wrong password with SizeDiffPreviousPercent set to 1%. From my configuration, I would've assumed the last two backups would've thrown an error, but they didn't (I'm running 5.1.11).

Anyway, thought i'd mention it here.

And it's worth noting i'm a big fan of phpbu despite my two bug reports. Don't want to just be submitting bug reports without expressing any gratitude. ;) I appreciate the work you've put into phpbu. I'm glad i stumbled across it the other day and am confident it'll serve me well for the foreseeable future.

Thanks!

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions