[Scottish] tarring

Allan Whiteford scottish at mailman.lug.org.uk
Fri Mar 21 16:28:01 2003


> On Fri, 21 Mar 2003, Allan Bruce wrote:
>
>> How on earth do I tar a directory up to a tarfile?
>> I looked at the man page and it aint working - my head is mush today.
>> That teaches me to go out drinking on a work night!!
>
> tar -cf tarfile.tar directory
>
> --
> Miah Gregory
>
>
> _______________________________________________
> Scottish mailing list
> Scottish@mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/scottish

Some versions of tar don't like a trailing slash on the directory name.

i.e. in some cases

tar -cf tarfile.tar directory

will work but

tar -cf tarfile.tar directory/

won't.

I assume Allan is still using Solaris, which I have seen this "feature"
on. This could be the problem, especially so when autocomplete helpfully
adds a trailing slash on for you.

Might be relevant.

Thanks,

Allan