how do I use tar -C on Snow Leopard when creating an archive ?
- by ssc
The man page states
-C directory
In c and r mode, this changes the directory before adding the following files.
However, tar does not change to the directory I specify, but instead reports
tar: <folder name>: Cannot stat: No such file or directory
for every folder in the directory I run the tar command in.
Do I really have to do something like
cd <folder> && tar ... && cd -
or is there a way to get this work ?