https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42028
--- Comment #1 from MichaĆ <[email protected]> --- Created attachment 195003 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195003&action=edit [PATCH 1/3] Bug 42028: use ZTSD instead of GZIP for koha-dump [PATCH 1/3] Bug 42028: use ZTSD instead of GZIP for koha-dump Notes: 1. By default ZSTD is much faster, while also providing smaller files 2. In koha-run-backups I've reorganized the deletion to be more readable and support both old and new extension. The instance name is properly escaped juuust in case, and a single regex is used. Mtime option was simplified, it works the same way while being more lean. These shell expansions were tested in both bash and dash, so /bin/sh shebang should be fine to remain. Even though --days must be greater than 0, if someone removed that check, `-mtime +-1` would still work as expected, amazingly. --- Benchmarking: # time koha-dump biblioteka Dumping Koha site biblioteka: * DB to /var/spool/koha/biblioteka/biblioteka-2026-03-09.sql.gz * configs, logs to /var/spool/koha/biblioteka/biblioteka-2026-03-09.tar.gz Done. real 1m13.647s user 1m22.566s sys 0m4.807s # time koha-dump biblioteka Dumping Koha site biblioteka: * DB to /var/spool/koha/biblioteka/biblioteka-2026-03-09.sql.zst * configs, logs to /var/spool/koha/biblioteka/biblioteka-2026-03-09.tar.zst Done. real 0m15.590s user 0m22.709s sys 0m5.305s # ls -lh /var/spool/koha/biblioteka/ | grep -F '2026-03-09.' -rw-r----- 1 root biblioteka-koha 111M Mar 9 15:20 biblioteka-2026-03-09.sql.gz -rw-r----- 1 root biblioteka-koha 99M Mar 9 15:23 biblioteka-2026-03-09.sql.zst -rw-r----- 1 root biblioteka-koha 949M Mar 9 15:21 biblioteka-2026-03-09.tar.gz -rw-r----- 1 root biblioteka-koha 937M Mar 9 15:23 biblioteka-2026-03-09.tar.zst -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
