I have a tar that was generated on a linux machine. I need to upload part of that tar to another linux machine. The full tar is huge and will take hours to upload. I am now on a Mac OSX machine and this is my problem:
- I extract the tar to a folder and locate what I need to upload to the new server
- I create a smaller tar containing just what I want to upload.
- I upload and extract that to the new linux machine
- When I look the server it is full of
._
files. For every file uploaded there is a._
file, liketext1.txt
,._text1.txt
,text2.txt
,._text2.txt
...
OSX is including these files on the tar.
I have tried to do this
tar --exclude='._*' -cvf newTar .
without difference.
I do not have ssh access to the new server now.
What can I do to solve that? How do I generate a clean tar.
tar
can't exclude them. Are you suggesting that OSX's tar implementation automatically creates them in the archive?tar --exclude='text2*' -cvf newTar .
? Istext2.txt
correctly excluded? Also, when runningtar --exclude='._*' -cvf newTar .
, do you see the._
files listed in the command's output?