Working - Re: [CentOS] Taring up the OS - how to exclude directories
William L. Maltby
CentOS4Bill at triad.rr.com
Fri Sep 8 20:40:39 UTC 2006
On Fri, 2006-09-08 at 14:28 -0400, Robert Moskowitz wrote:
> Robert wrote:
> > Robert Moskowitz wrote:
> >> Robert wrote:
> >>> Robert Moskowitz wrote:
> >>>><snip>
> there was no reason for the -C. Taking it out got things working. One
> question I have is that every so often the -v is showing things like the
> following:
>
>
> tar: Removing leading '/' from member names
> /
> /sbin
> /sbin/dump_cis
> /sbin/request-key
> /sbin/agetty
>
> Well those were the first ones, and the reason I could catch those is at
> that point SSH prompted my for the remote user password.
>
> If I watch the screen (without getting sick with the fast scrolling), I
> see other '/' being removed comments.
That is really what you want anyway. With a '/', you have absolute
pathname and can't as easily recover into a "working" directory. With it
removed, you have a "relative" path and can easily restore to a working
or to the original directory.
As to your "seasickness", redirect stdout and stderr into a file. Then
you can examine the file later, or tail it as it runs. Like so
tar <some junk> &>/tmp/tar.out # Puts norm and errors together
or
tar <some junk> >/tmp/normal.out 2>/tmp/error.out
as examples.
--
Bill
More information about the CentOS
mailing list