bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Error messages and how to avoid them?


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] Error messages and how to avoid them?
Date: Mon, 14 Jan 2008 15:13:27 +0200

Hugh Sasse <address@hidden> ha escrit:

> I'm not entirely sure what this means.  Does it mean
> 
>    * the job completed successfully apart from the earlier errors,
>      which now give this error exit.

Yes, exactly that.
 
> Can I tell tar to truncate filenames that are too long (possibly
> being warned if there are collisions as a result?

There are two options that could be used for that:

1. `--strip-components', that removes the specified number of directory
components from a file name (this option works when extracting from
archive), and

2. `--transform' option that alters file names according to a sed-like
expression (this option can be used both when creating and when
extracting). E.g. the command

  tar -cf archive.tar --transform 's,.*/,,'

removes all directory components from file names before storing them
into the archive.
   
For a detailed description, see
 http://www.gnu.org/software/tar/manual/html_node/tar_107.html

> Do I need to do that at creation?

It depends a great deal on where you plan to extract your archive. 

Regards,
Sergey
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]