Re: tar question

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



On Thu, 7 Jun 2007 at 9:18am, Matt Hyclak wrote

On Thu, Jun 07, 2007 at 02:11:23PM +0100, Tom Brown enlightened us:
Using tar i normally create an archive etc and then unpack that archive,
job done.

But i am copying from one filesystem to another on the same host, they
are 2 seperate nfs filesystems, and i wonder is it possible to use tar
to do this as opposed to say rsync etc.

tar -cvf /some/input/dir to/here etc ?


I believe it goes something like:

cd /some/input/dir
tar cvf - . | (cd /to/here; tar xvf -)

Alternately

cd /some/input/dir
tar cO . | tar xC /to/here -f -

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
_______________________________________________
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