Selective Copy? Hey!
OK, here's what I'd like to do.
I'd like to cp my /usr/portage directory over to another computer
(essentially making a snapshot of however current it is at the time).
*HOWEVER*, I don't want to copy over my packages or distfiles dir. The
all the packages there are for a different processor (everything there is
for a Pentium 4, the target machine is a P-MMX), and the distfiles would
waste far too much space to copy the whole thing over (I'm just going to
NFS mount it).
Now I know the easy way is to mv the packages and distfiles out of the
portage dir and copy the remaing stuff to the target machine, but, is
there a way to tell cp to exclude certain directories?
I hope I explained this well enough for someone to make sense of...
Thanx! |