my mistake, the /oldvol mounts should be different
dirs under root.
cd /oldvol1/dir1; find . ... | cpio -dmp /newvol1/dir1 &
cd /oldvol2/dir2; find . ... | cpio -dmp /newvol2/dir2 &
The /old/1, /old/2 would also work; you'd be reading
from the same source mount though, unless the individual dirs
were mounted separately.
mount filer:/vol/old/1 /old/1
mount filer:/vol/old/2 /old/2
-----Original Message-----
From: Toal, Dave
To: 'Jim Davis '; 'toasters(a)mathworks.com '
Sent: 3/13/03 3:45 PM
Subject: RE: Moving files but not .snapshots?
Jim,
If there are subdirectories in what you're copying,
one way to speed things up is mounting the same pair of vols
(old, new) multiple times, and running the find | cpio in each
subdir. Use more than one cp host if you saturate i/o or cpu
on the first one.
cd /oldvol/dir1; find . ... | cpio -dmp /newvol1/dir1 &
cd /oldvol/dir2; find . ... | cpio -dmp /newvol2/dir2 &
> What I am seeking is a bit like folklore.
How about a spam filter that bounces any posts that
don't contain keywords? "filer, vol, ndmp, spam" ?
-----Original Message-----
From: Jim Davis
To: toasters(a)mathworks.com
Sent: 3/13/03 2:47 PM
Subject: Moving files but not .snapshots?
I want to move two big directories from an old volume to a new volume,
but
just the files -- not the snapshot subdirectories. So far I've tried
find . -type d -name '.snapshot' -prune -o -print | cpio -pdm /newvol
from the adminhost, which works but isn't blazingly fast. Are there any
other ways people can suggest?