Bug 396279 - Support for compressing the whole target tarball once instead of each source file individually
Summary: Support for compressing the whole target tarball once instead of each source ...
Status: RESOLVED WORKSFORME
Alias: None
Product: kbackup
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Martin Koller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-07 16:35 UTC by Unknown
Modified: 2019-01-05 09:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
---------------