[Bug 14378] New: koha-run-backups should check disk usage first
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14378 Bug ID: 14378 Summary: koha-run-backups should check disk usage first Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Command-line Utilities Assignee: gmcharlt@gmail.com Reporter: pablo.bianchi@gmail.com QA Contact: testopia@bugs.koha-community.org CC: robin@catalyst.net.nz Naively I increase --days koha-run-backups parameter too high (30) letting disc out of space. It could be a nice enhancement: + Check disk space before generating files (for eg with fallocate: preallocate space to a file)) + and/or sacrifice/remove older backup. + option to backup indefinitely until destination dir/partition grow up to a given percentage (lets say 95 (%)). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14378 Joonas Kylmälä <j.kylmala@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |j.kylmala@gmail.com --- Comment #1 from Joonas Kylmälä <j.kylmala@gmail.com> --- (In reply to Pablo AB from comment #0)
+ option to backup indefinitely until destination dir/partition grow up to a given percentage (lets say 95 (%)).
The size of backups & free space could vary then quite a lot if there is a huge/small storage in use. I suggest to leave there some nMb/nGb of space. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14378 --- Comment #2 from Robin Sheat <robin@catalyst.net.nz> --- Keep in mind that filesystems have a capability to reserve a certain percentage for the root user, preventing things from going catastrophically bad when they fill up. While not exactly the same thing, that should give you some protection. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14378 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com --- Comment #3 from Tomás Cohen Arazi <tomascohen@gmail.com> --- I suggest taking a look at bug 14532, which makes backups skip Zebra index files by default and would prevent most of the problems. As for the enhancement request, I'd say you can now choose how many backups to keep (days) and that's pretty much all you need. As robin said, it is not obvious to know how big the backup would be, and it might not even be necessary with current options (and bug 14532 that needs some love from you). -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org