LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   tar must compress directory including every bind mountpoint's content (https://www.linuxquestions.org/questions/programming-9/tar-must-compress-directory-including-every-bind-mountpoints-content-4175727393/)

zeroone 07-26-2023 09:35 PM

tar must compress directory including every bind mountpoint's content
 
How do we have tar archiving and compressing directory including all resolved mountpoints' contents under it?

NevemTeve 07-26-2023 11:27 PM

What did you try, and was the problem with it?

pan64 07-27-2023 01:58 AM

yes, tar has some options to compress, what's wrong with them? (see man page)

jmccue 07-27-2023 10:30 AM

tar(1) is one of those odd programs that is so complex the man page can be hard for people :) Also there are some differences between various UN*X systems.

So this is what I do, and this is compatible with the BSDs and AIX.

Code:

tar -pcf- DIR | gzip > DIR.tar.gz
HTH


All times are GMT -5. The time now is 07:13 PM.