Bug 396279

Summary: Support for compressing the whole target tarball once instead of each source file individually
Product: [Applications] kbackup Reporter: Unknown <null>
Component: generalAssignee: Martin Koller <martin>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Unknown 2018-07-07 16:35:19 UTC
Currently KBackup compresses each source file individually, and then stores them inside an uncompressed tarball. I would prefer instead to store source files without individual compression, and then compress the whole target tarball just once. What do you think?
Comment 1 Christoph Feck 2018-12-20 23:24:52 UTC
This would mean that whenever you need to restore a file from the backup, you would have to decompress the complete backup.
Comment 2 Martin Koller 2019-01-05 09:46:36 UTC
You can achieve this already by using a slice-script, e.g. put the following
in a script, e.g. ~/scliceScript.sh
then start kbackup with the option --script ~/scliceScript.sh

The renaming to the original file name ensures that the internal mechanism
to reducing to a specified number of backups still work.

---------------
#!/bin/sh

mode=$1
archive=$2

case "$mode" in
 "slice_finished" )
   gzip -9 ${archive}
   mv ${archive}.gz ${archive}
 ;;
esac
---------------