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

Re: tar, cpio, or cp?



Lorens Kockum wrote:

> On Fri, Nov 21, 1997 at 08:58:56PM +0100, Olivier THARAN wrote:
> > 
> > (cd dir1 && tar cv *) | (cd dir2 && tar xf -)
> > which preserves everything (dunno about times however).
> 
> Huh? What about files beginning with a '.' that are not expanded by the
> '*'? That's just to begin with ... use cpio.

The asterisk was perhaps a bad example.  This works for me (including all
dot files):

tar cf /path | ( cd other/path ; tar xvf -)

Some people add a bunch of other flags to tar.
-- 
Peter Galbraith, research scientist             <galbraith@mixing.qc.dfo.ca>
Maurice-Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada  418-775-0852 - FAX 418-775-0546



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: