X

Alejandro Vargas' Blog

  • December 4, 2006

Using tar to copy Unix Directory trees on the same server or across servers

Alejandro Vargas
Technical Leader, ACS Global Delivery, Infrastructure & BigData

Copying a Directory to the same server:

1) Create a directory to hold the copy

mkdir /u01/oracle/product/10gR2_install_disks

2) Go to the source directory:

cd /mnt/10gR2/database

3) From within the source directory execute the tar command

tar cvf - . | (cd /u01/oracle.product/10gR2_install_disks ; tar xvfBp -)

Copying a Directory to another server:




1) Create a directory to hold the copy on the remote server



mkdir /u01/oracle/product/10gR2_install_disks





2) Go to the source directory on the local server:



cd /mnt/10gR2/database




3) From within the source directory execute the tar command



tar cvf - . | (rsh myserver " cd /u01/oracle/product/10gR2_install_disks ; tar xvf -")

Join the discussion

Comments ( 1 )
  • datindwjp Thursday, August 23, 2007
    My name is Elena. To me of 20 years.
    I would like to get acquainted with you if you not against.
    I Look forward to hear you soon with impatience. Dating[url=http://toplop.com/?idAff=59]Dating[/url]
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.