-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Last I checked, the third party pkgacct scripts did not support a --no-compress option.
I'm wondering how hard it would be to get that added - My thoughts:
pkgacct makes a tarball, compresses it
We transfer the gz archive
restorepkg uncompresses, then unpacks that tarball
If we had a --no-compress option, we could skip the gz/compression process. Swap scp for rsync with compression and we've got an efficiency boost:
pkgacct makes an uncompressed backup (folder? .tar?)
rsync brings over the archive, with stream compression
restorepkg restores the package.
Here, we take out the time required for an entire compression cycle, as essentially we are handling compression/decompression at the same time via rsync.
Additionally, I think this would help alleviate the problems we see sometimes when people have archives in their directories (yo dawg).