On Jun 10, 1:24pm, Carl Parrish wrote:
> Kevin when you tar a file does it create a copy or does it effect
> the original? The directories I need to more are on a semi public
> box and will be in use during the transfer.
It doesn't modify the original file.
If you don't want to create a copy of the directories that you're
transferring, you can do it something like this:
cd somewhere
tar cf - somedir1 somedir2 | ssh remote.host.com 'cd somewhereelse; tar xvf -'
Or:
ssh remote.host.com 'cd somewhere; tar cf - somedir1 somedir2' \
| ( cd somewhereelse; tar xvf - )
Kevin