subscribe iconSubscribe to this information

Saving to and restoring from a tape device

Use these procedures to save and restore AIX® files between an AIX logical partition that uses i5/OS® resources and a shared tape drive.

Ensure that your AIX data is in the file server.

To save and restore AIX files between a partition that uses i5/OS resources and a shared tape drive, follow these steps:
  1. Type the following command: tar -c -f /dev/rmt0 files Use the following descriptions to help you understand the arguments of this command:
    • tar is the command name (the contraction of "tape archive").
    • -c is the command action to create. This argument specifies that the tar command creates a new archive or overwrites an old one (as opposed to restoring files from an archive or adding individual files to an existing archive).
    • -f /dev/rmt0 is the tape device and number. This argument specifies that the command uses virtual tape 0 on the IBM® System i® server. After the tar command runs, the tape device is closed and the tape is rewound. To save more than one archive on the tape, you must keep the tape from rewinding after each use, and you must position the tape to the next file marker. To do this, specify the rmt0.1 (nonrewinding virtual tape) device instead of rmt0.
    • files are the names of the files and directories that you plan to save.
    You have now saved AIX data from a partition that uses i5/OS resources to the shared tape drive.
  2. Type the following command: tar -x -f /dev/rmt0 files The -x (extract) argument replaces the -c (create) argument in the tar command used in step x. You have now restored AIX data from the shared tape drive to a partition that is sharing resources.

Send feedback | Rate this page

Last updated: Fri, Oct 30, 2009