Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

third party pkgacct --no-compress #45

Open
philstark opened this issue Aug 9, 2013 · 1 comment
Open

third party pkgacct --no-compress #45

philstark opened this issue Aug 9, 2013 · 1 comment
Labels
Milestone

Comments

@philstark
Copy link
Collaborator

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).

@renderorange
Copy link
Contributor

here are the options for pkgacct-pXa

./pkgacct --help
usage: /tmp/.perl-ppk-ob7jRW/scripts/main.pl [--split|--nosplit] [--skipdocroots] [--skipacctdb] user [tarroot]

I would assume this applies to the other 3rd party scripts as well
so making this option assumingly would have to apply to cPanel - cPanel only, unless we re-wrote pkgacct itself, since triggering pkgacct is in one command, not commands.

but yeah, this would totally give a speed increase and help with the archive in the archive issue.

my 2 cents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants