Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!apple!mips!cmic!garvey From: garvey@cmic.UUCP (Joe Garvey) Newsgroups: comp.sys.hp Subject: Re: Copying disks Summary: what about hidden directories? Message-ID: <282@cmic.UUCP> Date: 8 Apr 90 16:54:07 GMT References: <1990Apr4.180328.18281@Neon.Stanford.EDU> <3770046@hpclove.HP.COM> Organization: Califonia Microwave Inc., Sunnyvale, CA. Lines: 28 In article <3770046@hpclove.HP.COM>, campbelr@hpclove.HP.COM (Bob Campbell) writes: > dd works great if the partitions being copied are identical. > > Why not use cpio to do the transfer. With disks mounted at /new and /old: > > cd /old > find . -depth -print | cpio -pxmdv /new Don't forget hidden directories!!! to move files in mass: (I've used this lotsa times.) first: cd dir_in_question second: find . -hidden -print > /tmp/tmp_file third: cat /tmp/tmp_file | cpio -pdxumv new_dir I often need to edit out a group of files (directories), which I do between steps two and three. I also review what's to be moved so I'm sure I haven't missed anything. Can't be too careful when moving a whole file system, esp the root file system. -- Joe Garvey UUCP: {apple,backbone}!versatc!mips!cmic!garvey California Microwave Internet: garvey%cmic@mips.com 990 Almanor Ave HP Desk: garvey (cmic@mips.com) /hp1900/ux Sunnyvale, Ca, 94086 408-720-6439 (let it ring)