tar fs copy

Guy Harris guy at sun.uucp
Mon Oct 14 18:30:13 AEST 1985


> > 	(cd $1; tar cf - .) | (cd $2; tar xf -)
> 
> Why not ( cd $2; tar -cf - -C $1 . | tar xf - ) ?

Because the -C flag to "tar" was added by Berkeley in 4.2BSD; it's not
present in all versions of "tar".

	Guy Harris



More information about the Comp.unix.wizards mailing list