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?
To avoid snapshots, just create a snapshot and copy from within it. There are no snapshots below a snapshot. You are better off copying a snapshot anyway because it cannot change during the copy.
cd dir/.snapshot/mysnap find . -print | cpio -pdm /newvol
Or else check out ndmpcopy. This command comes with 6.3 and above. For earlier releases, you have to install ndmpcopy on a unix host and run it from there.
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support