Re: Tar Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use "--exclude  FILE " in the tar command.  Read the man pages on tar.

man tar

On Tuesday, September 7, 2004, at 04:45 PM, Darryl W. DeLao Jr. wrote:

Is there a way to create a tar file and exclude a specific directory that is
within the directory you want to tar?




For example, I have a directory called /www/ and in that directory is
another directory called /www/test/ and I want to tar up the /www/
directory but I do not want the tar to include the /www/test/ directory but
I do want the tar to include all the other sub-directories within /www/




Thanks!

Darryl





--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux