A/UX: Questions About Using tar (11/95)


1) How can I use tar to create a backup of a directory and compress the
output?

2) How can I read a tar floppy if I receive the message "This is not a
Macintosh disk" when I insert the disk?

1) The easiest way to do this in one step is with the command:

tar -cvf - dir_name | compress > dir_name.tar.Z

The file dir_name.tar.Z is now your compressed backup file.

2) Make the CommandShell the front-most application and insert the disk.
Under A/UX 2.0 you will be prompted with a dialog asking if the disk is
an A/UX or Macintosh floppy. (On A/UX 2.0.1 or later that dialog no
longer appears.) Select A/UX and at the prompt type:

tar -tvf /dev/floppy0 To list the contents of the floppy
tar -xvf /dev/floppy0 To extract the contents of the floppy to the
current directory.


Article Change History:
28 Nov 1995 - Updated format.
31 Aug 1992 - Reviewed for technical accuracy.

Support Information Services
Published Date: Feb 18, 2012