[OS X TeX] Copying gwTeX

Aaron Jackson jackson at msrce.howard.edu
Mon Sep 26 06:08:06 CEST 2005

On Sep 25, 2005, at 4:13 PM, Axel E. Retif wrote:

> Peter, Piet,
> On Sep 25, 2005, at 1:19 PM, Piet van Oostrum wrote:
>>>>>>> Peter Dyballa <Peter_Dyballa at Web.DE> (PD) wrote:
>>> PD> Usually administrators use some thing like 'tar cf - ./local | 
>>> (cd <to the
>>> PD> target's parent directory>; tar xf -)' to avoid possible side 
>>> effects from
>>> PD> cp (this symlink following or that hard links get copied as 
>>> individual
>>> PD> files on the target) -- but he probably won't waste much space 
>>> on his large
>>> PD> and quite empty disk ... and I think he'll learn some finesses!
>> Or if you have a network connection and ssh enabled:
>> tar cfz - ./local | ssh machine 'cd <target dir>; tar xfz -'
> Thank you both! I went the tar way, which I haven't even thought about!
> Everything seems to be working just fine.
> Thank you again!

To be more exact, in general the tar command should be:

tar cfz - ./local | ssh machine 'cd <target dir>; tar xpfz -'

note the ``p'' in the second tar preserves the owner and group 
information along with the file modes, which might be critical 
depending on who owns the files.  Not including it has bitten be in the 
past.  One additional problem is that both machines need to have the 
same user owner and group id's.


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the macostex-archives mailing list