Re: Working - Re: [CentOS] Taring up the OS - how to exclude directories

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



On Fri, 2006-09-08 at 14:28 -0400, Robert Moskowitz wrote:
> Robert wrote:
> > Robert Moskowitz wrote:
> >> Robert wrote:
> >>> Robert Moskowitz wrote:
> >>>><snip>

> 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.

BTW, that means you really didn't do it "right". What you really wanted
to do was cd to / (or use the C) and then tar up "." (no quotes). Then
your file names would be like "./sbin/abc', './sbin,123', ... giving a
relative pathname again. You could also do a tar with the -C and backup
"*" (no quotes) but that would miss "hidden" files unless you took
special steps.

As another step, tar and compress (if you have fast CPU and slow I/O,
this helps) in "one step" or pipe tar output into bzip2 and get max
compress. But this can get quite slow. Like Fridays on the CentOS lists
(TG after that crap from yesterday).


> <snip>

HTH
--
Bill

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux