Problem Description
My Sympl backup2l cron job is now emailing me to say that there isn’t enough space for a backup:
=> Checking there is enough free space for a backup...
* Free space on /var/backups/localhost: 15.6 GB
* Estimated backup size: 15.6 GB
!! There is not enough space to take a backup. Aborting!
However, using backup2l --estimate /etc/sympl/backup.d/backup2l.conf
gives:
Estimating differential level-2 backup <all.244> based on <all.243>...
6655 / 200548 file(s), 382 / 21896 dir(s), 333.6MB / 15.6GB (uncompressed)
skipping: 177 file(s), 3 dir(s), 3.8MB (uncompressed)
That looks to me as though it should only be backing up 333.6 MB, not 15.6 GB.
The regex /\/ (?<int>[0-9]*\.?[0-9]+)(?<suff>[ KMGT]B) \(uncompressed\)$/m
in /etc/sympl/backup.d/pre-backup.d//05-check-availspace
is selecting the second figure from the output of the estimation command; is that correct?
Environment
- Sympl Version: 11
- Debian Version: 11
- Hardware Type: VM
- Hosted With: Digital Ocean