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

--exclude-compressed in environement variable #3992

Open
Pascal76 opened this issue Mar 27, 2024 · 6 comments
Open

--exclude-compressed in environement variable #3992

Pascal76 opened this issue Mar 27, 2024 · 6 comments
Assignees

Comments

@Pascal76
Copy link

--exclude-compressed is not usable when using tar command for backups for ex.

tar cf $FILE.zst --use-compress-program zstd

Would be great to be able to ignore already compressed files in this case and probably other ones.

@Cyan4973 Cyan4973 self-assigned this Mar 28, 2024
@Cyan4973
Copy link
Contributor

Did you mean:

tar -cf $FILE.tar.zst -I 'zstd' .

@Pascal76
Copy link
Author

Pascal76 commented Mar 28, 2024

sorry I don't understand your question.

-I = --use-compress-program
also I did not added the directory to backup ... but that is not interesting

For zstd, --exclude-compressed should be the default value, from my point of view, for a compressor reputed for its velocity

@gcflymoto
Copy link

I disagree. Sometimes there is a benefit to double compressing so zstd should not be forcing --exclude-compressed on everyone. You can include it yourself

tar cf $FILE.zst --use-compress-program 'zstd --exclude-compressed'

@Pascal76
Copy link
Author

ok some people may want double compressing, and for some cases too sometimes the compression is better.

Do you double compress zstd files too ?

Thank you for the command line.

@gcflymoto
Copy link

Not double .zst, but gzip+bzip2 or gzip+zstd can be a worthwhile combination

@lelik107
Copy link

I disagree. Sometimes there is a benefit to double compressing so zstd should not be forcing --exclude-compressed on everyone. You can include it yourself

tar cf $FILE.zst --use-compress-program 'zstd --exclude-compressed'

I totally agree - this option should not be enabled by default.

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

No branches or pull requests

4 participants