[solved] tar - How to exclude a directory?

Ralf Mardorf silver.bullet at zoho.com
Wed Mar 22 15:07:20 UTC 2017


On Thu, 23 Mar 2017 00:08:23 +1100, Karl Auer wrote:
>It should look exactly as it appears in the current directory or in
>the tar file.

Removing ./ does the trick. This was my thought, too, but I didn't test
it, because of wrong information by the Internet, that was repeated
multiple times, by different links.

$ diff bak_u12music_attr bak_u12music_attr.old 
181c181
< tar --exclude=winOS_2/ardour_ragrug-2017-mar-21-DONT_DEL_AT_IO_ERROR/cubasis \
---
> tar --exclude=./winOS_2/ardour_ragrug-2017-mar-21-DONT_DEL_AT_IO_ERROR/cubasis \

Thank you!





More information about the ubuntu-users mailing list