JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Devices and File Systems     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Managing Removable Media (Overview)

2.  Managing Removable Media (Tasks)

3.  Accessing Removable Media (Tasks)

4.  Writing CDs and DVDs (Tasks)

5.  Managing Devices (Overview/Tasks)

6.  Dynamically Configuring Devices (Tasks)

7.  Using USB Devices (Overview)

8.  Using USB Devices (Tasks)

9.  Using InfiniBand Devices (Overview/Tasks)

10.  Managing Disks (Overview)

11.  Administering Disks (Tasks)

12.  SPARC: Adding a Disk (Tasks)

13.  x86: Adding a Disk (Tasks)

14.  Configuring iSCSI Storage Devices With COMSTAR

15.  Configuring and Managing the Solaris Internet Storage Name Service (iSNS)

16.  Managing Disk Use (Tasks)

17.  The format Utility (Reference)

18.  Managing File Systems (Overview)

19.  Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)

20.  Mounting and Unmounting File Systems (Tasks)

21.  Configuring Additional Swap Space (Tasks)

22.  Copying Files and File Systems (Tasks)

Commands for Copying File Systems

Copying File Systems Between Disks

Making a Literal File System Copy

How to Copy a Disk (dd)

Copying Directories Between File Systems (cpio Command)

How to Copy Directories Between File Systems (cpio)

Copying Files and File Systems to Tape

Copying Files to Tape (tar Command)

How to Copy Files to a Tape (tar)

How to List the Files on a Tape (tar)

How to Retrieve Files From a Tape (tar)

Copying Files to a Tape With the pax Command

How to Copy Files to a Tape (pax)

Copying Files to Tape With the cpio Command

How to Copy All Files in a Directory to a Tape (cpio)

How to List the Files on a Tape (cpio)

How to Retrieve All Files From a Tape (cpio)

How to Retrieve Specific Files From a Tape (cpio)

Copying Files to a Remote Tape Device

How to Copy Files to a Remote Tape Device (tar and dd)

How to Extract Files From a Remote Tape Device

Copying Files and File Systems to Diskette

What You Should Know When Copying Files to Diskettes

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

How to List the Files on a Diskette (tar)

How to Retrieve Files From a Diskette (tar)

Archiving Files to Multiple Diskettes

23.  Managing Tape Drives (Tasks)

Index

Copying Files to a Tape With the pax Command

How to Copy Files to a Tape (pax)

  1. Change to the directory that contains the files you want to copy.
  2. Insert a write-enabled tape into the tape drive.
  3. Copy the files to tape.
    $ pax -w -f /dev/rmt/n filenames
    -w

    Enables the write mode.

    -f /dev/rmt/n

    Identifies the tape drive.

    filenames

    Indicates the files and directories that you want to copy. Separate multiple files with spaces.

    For more information, see the pax(1) man page.

  4. Verify that the files have been copied to tape.
    $ pax -f /dev/rmt/n
  5. Remove the tape from the drive. Write the names of the files on the tape label.

Example 22-7 Copying Files to a Tape (pax)

The following example shows how to use the pax command to copy all the files in the current directory.

$ pax -w -f /dev/rmt/0 .
$ pax -f /dev/rmt/0
filea fileb filec