Basically, I just want to deform all the files in the directory, but not get all the parent directories in the archive.
I tried -C, but I think I am not using it correctly.
tar -cjf archive.tar.bz2 -C /var/some/log/path ./*
This causes tar to try to add all the files to CWD. Using the full path as the last argument does not prevent the addition of dirs.
Seems simple enough, but can't figure it out. Somehow tar is not tar./* as relative -C, although it should change to this directory.
Help evaluate.
shell tar
Joe
source share