Disk/Disk or Directory/Directory Copy Between AWS 95 and A/UX

Side Navigation Graphic, See Text Links

Find It
Home
Table Of Contents
Support Pages
Feedback & Contact
Apple Computer, Inc.
Mirror Sites
Huh?

ListenUP plug-in URL
By Antonio Ordonez

This article describes how to copy all the files in the root (/) partition between an Apple Workgroup Server 95 and A/UX, without loosing access privileges and without having to recreate the /dev directory. The following commands create a duplicate of the directory structure of the source drive onto the target drive. You can also use this command sequence to copy a directory tree from one directory to another.

To Copy The Complete Contents Of A Partition

Complete the steps in the following table while logged in as root:

Step 1
Mount the partition you want to copy to (target) on /mnt:


mount /dev/dsk/c5d0s0 /mnt 
NOTE: Replace SCSI ID and partition as appropriate.

Step 2
Go to the / directory:


cd /

Step 3
Perform the copy preventing the copy from becoming recursive and without overwriting the lost+found directory in the target partition:


find . -print | grep -v /mnt | grep -v /lost+found | cpio -pdlmuv /mnt

Step 4
Create the mnt directory in /mnt:


mkdir /mnt/mnt 
chmod 777 /mnt

Step 5
Unmount the target disk and perform an fsck:


umount /mnt 
fsck /dev/dsk/c5d0s0

Now you have a copy of the source drive, complete with the /dev directory.

To Create a Duplicate of a Directory Structure

Step 1
Go to the directory containing the source directory to be copied:


cd /a_directory

Step 2
Perform the copy of the source_dir to the directory where you want the source_dir structure to be moved to:


find source_dir -print | cpio -pdlmuv /target_dir

This results in a directory called source_dir inside of target_dir.The Famous Apple!

Previous
[Previous] [Top] [Next]

-----------------------------------------------------------

"The Information Alley", in all formats, is copyright Apple Computer, Inc.
All Rights Reserved.