System Administration Guide: Basic Administration

How to Copy Files to a Single Formatted Diskette (tar)

  1. Change to the directory that contains the files you want to copy.

  2. Insert a formatted diskette that is not write-protected into the drive.

  3. Make the diskette available.


    $ volcheck
    
  4. Reformat the diskette, if necessary.


    $ rmformat -U /dev/rdiskette
    Formatting will erase all the data on disk.
    Do you want to continue? (y/n)y
    
  5. Copy the files to diskette.


    $ tar cvf /vol/dev/aliases/floppy0 filenames
    

    The file names that you specify are copied to the diskette, overwriting any existing files on the diskette.

  6. Verify that the files were copied.


    $ tar tvf /vol/dev/aliases/floppy0
    

    For more information on listing files, see How to List the Files on a Diskette (tar).

  7. Remove the diskette from the drive.

  8. Write the names of the files on the diskette label.

Example—Copying Files to a Single Formatted Diskette (tar)

The following example shows how to copy files named evaluation* to a diskette.


$ cd /home/smith
$ volcheck
$ ls evaluation*
evaluation.doc   evaluation.doc.backup
$ tar cvf /vol/dev/aliases/floppy0 evaluation*
a evaluation.doc 86 blocks
a evaluation.doc.backup 84 blocks
$ tar tvf /vol/dev/aliases/floppy0