I have this tar command
tar czvf "/Volumes/Cold_Storage_5/144000-144999/144073.tgz" "/Volumes/COLD STORAGE/144000-144999/144073" --exclude "/Volumes/COLD STORAGE/144000-144999/144073/print drive/*"
when it runs everything gets added to the archive but when it goes to exclude... it gets funky.
here is the terminal output from the exclude part of the command
tar: --exclude: Cannot stat: No such file or directory
/Volumes/COLD STORAGE/144000-144999/144073/print drive/
/Volumes/COLD STORAGE/144000-144999/144073/print drive/._144073.F1.P2.T1(61).tif
/Volumes/COLD STORAGE/144000-144999/144073/print drive/144073.F1.P2.T1(61).tif
/Volumes/COLD STORAGE/144000-144999/144073/print drive/._144073_F1.P1.T1(60).tif
/Volumes/COLD STORAGE/144000-144999/144073/print drive/144073.F1.P1.T1(60).tif
tar: Error exit delayed from previous errors
the folder i am trying to exclude only has 2 .tif files in it. I understand the the ._ files are hidden ones which is fine, but ...
if i open the .tgz file and look inside the print drive folder and its contents are still in there. There are 8 files in the tar file, but only 4 files show up here.
also, in the section of the tar command where it adds the files only 4 of the 8 are displayed in the output. But ALL 8 show up in the tar file.
can anyone offer a suggestion as to why? or explain to me what I am missing?
All i want to do is compress the directory and exclude the print drive folder and its contents.