Re: How to copy a /filesystem minus 1 directory??

From: Jean-Marc Monnez (monnez.jean-marc@AGORA.MSA.FR)
Date: Wed Aug 07 2002 - 04:56:51 EDT


Not tested, but I hope this should work if bigdir is the one you exclude :

h70:/filesys # find $(ls -a|egrep -v "^\.$|^\.\.$|^bigdir$) -print | cpio
-ovcB | rsh h50 (cd /filesys ; cpio -ivcdBmu)

Regards

-- JMM

"Sandor W. Sklar" wrote :

> On Tuesday, August 6, 2002, at 12:19 PM, Ken_Sedlacek@KYRUS.COM wrote:
>
> > Enviro:
> > H70, AIX 4.3.3.06
> > H50, AIX 4.3.3.10
> > On a secured internal network
> >
> > I need to copy a filesystem that is ~9GB of data from H70 to H50.
> >
> > All data except 1 large directory.
> >
> > How can I do this with the least pain?
>
> There are about 8 million ways. Here is one:
>
> root@h70:/filesystem# tar cvf - . | rsh h50 (cd /filesystem ; tar xf -
> )
>
> You could also use TSM to back it up, and then restore it on the other
> system. (ok, that is two ways.)
>
> -s-
>
> >
> >
> >
> > Ken Sedlacek
> > AIX/TSM/UNIX Administrator
> > ksedlacek@kyrus.com
> >
> > IBM Certified Specialist: RS/6000 AIX v4.3 Support
> > IBM Certified Specialist: RS/6000 SP & PSSP 3
> > Tivoli Certified Consultant - Tivoli Storage Manager v4.1
> >
> >
> --
> Sandor W. Sklar - Unix Systems Administrator - Stanford
> University ITSS
> Non impediti ratione cogitationis.
> http://whippet.stanford.edu/~ssklar/



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:07 EDT