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

support for multiple formats #50

Open
SaicharanKandukuri opened this issue Oct 20, 2023 · 1 comment
Open

support for multiple formats #50

SaicharanKandukuri opened this issue Oct 20, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@SaicharanKandukuri
Copy link
Member

Looks like some tar version requires special arguments for different formats. like -z for gzip's --zstd for zstd types

  • check for file formats and use arguments based on formats
@SaicharanKandukuri SaicharanKandukuri added enhancement New feature or request hacktoberfest accepted for hacktoberfest labels Oct 20, 2023
@SaicharanKandukuri SaicharanKandukuri removed the hacktoberfest accepted for hacktoberfest label Apr 28, 2024
@SaicharanKandukuri
Copy link
Member Author

Current progress bar implementation works with pv and tar does not support compression type detection when it receives file from standard input.

pv $file | proot \
--link2symlink \
tar --no-same-owner -xz -C "$path" &> $LOG_FILE

To support multiple compression types there are two solutions.

  1. Add check for compression types.
  2. Use tar checkpoints and checkpoint actions feature to calculate progress and create progress bar

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

No branches or pull requests

1 participant