InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen | Dieses Buch im PDF-Format herunterladen (2592 KB)
Chapter 12 Tape ToolTape Tool enables you to copy files and directories onto a tape cartridge. You may need to do this to make backup copies or to archive files that you want to retain but that you do not need on a regular basis. Or, you may need to copy files or directories onto tape in order to pass them on to someone else with a compatible system who can then extract them from the tape. Tape Tool provides a user interface to the UNIX tar tape archiving and retrieval functions. Refer to the manual page for tar for more detailed information. Note - Tape Tool is not intended to be an all-purpose system backup tool. It cannot read tapes that have been written using the cpio command. To open Tape Tool, choose Workspace -> Programs -> Tape Tool. Tape Tool IconThe Tape Tool icon has an image of a tape cartridge, as shown in Figure 12-1. Figure 12-1 Tape Tool IconYou can select files and folders from the File Manager to be archived on tape. You can drag and drop them as a group or individually onto the Tape Tool icon or onto the open Tape Tool window to accumulate a list of files to be written to a tape or archive file. Tape Tool WindowThe Tape Tool base window is shown in Figure 12-2. Figure 12-2 Tape Tool Window
You can perform the following operations from the Tape Tool window:
The control area provides controls for listing, reading to tape, writing from tape, and setting Tape Tool properties. Use the File To Write button and text field to type in the names of files that you want to write to tape. The scrolling list displays a list of the files you specify by typing file names or by dragging and dropping icons from the File Manager. If files were archived without a path name or with a relative path name, you can specify in the Destination field where those files are put in your file system when they are read from the tape. The default destination is your current working directory. If the files on a tape have a complete path name (absolute path name), the files are always put in the directory specified on the tape, regardless of what you type in the Destination field. To strip files of their absolute path name when you archive them, set the Strip Path option in the Tape Tool Properties window to All and click SELECT on the Apply button. Each of the Tape Tool operations is described in more detail in the following sections. Editing the List of Files in the Tape Contents WindowOnce the files are listed (by pressing the List button) in the Tape Contents window, you can retrieve all of the files in the list, retrieve specific selected files, or edit the list to remove files you do not want to retrieve. The Tape Contents window has a Read Functions pop-up menu, shown in Figure 12-3. To display this menu, move the pointer into the Tape Contents window and press MENU. Figure 12-3 Read Functions Pop-up Menu in the Tape Contents Window
Select All from the Read Functions menu selects all files on the tape. You can edit a group of files by clicking SELECT on the name of each file that you want to delete. Clicking SELECT on a selected file deselects it. Files such as group, licenses, and passwd are highlighted, as shown in Figure 12-4. Figure 12-4 Selected Files to Read (group, licenses, and passwd)
Delete Selected from the Read Functions pop-up menu removes these files from the list. Choose Select All and then Delete Selected from the pop-up menu to delete all the files from the list. To restore an accidentally deleted file, add it back to the list by typing the file name in the File To Read text field, then press the Return key or click SELECT on the File To Read button. These functions prepare the scrolling list for an operation from the Read menu described in the next section. Reading Files from a TapeThe Read menu, available from the Read button at the top of the Tape Tool base window, has three options to read files from the tape or archive files to the directory specified in the Tape Tool window. When you read files that have a path name in front of them (an absolute path name), as shown in the Tape Contents list, that path name is always used as the destination. If the files are not preceded by a file name, the directory you specify in the Destination text field is used as the destination. Read SelectedWhen you have listed the contents of a tape and selected all or some of the files, choosing Selected from the Read menu copies the specified files to the destination directory shown in the control area. When you have not listed the contents of a tape, choosing Selected displays the Tape Contents window without a listing. If you know the names of specific files that you want to retrieve, you can type a name in the File To Read text field, then press the Return key or click SELECT on the File To Read button to add them to the list. Read Entire ListWhen you have listed the files from a tape, choosing Entire List from the Read menu reads the entire list of files from the Tape Contents window. When you have not listed the contents of a tape, choosing Entire List displays the Tape Contents window without a listing. While the files are being read, messages are displayed in the footer of the Tape Tool window showing you the percentage of files that have been read. As the files are read, they are removed from the Tape Contents window. When the process is complete, a message is displayed in the footer of the Tape Tool window telling you how many files were read. If there are a large number of files, it may take several minutes for the files to be copied to your system. Read Entire TapeChoosing Entire Tape from the Read menu copies all of the files on the tape to the destination directory without displaying the Tape Contents window. Copying (Writing) Files onto TapeTo copy (write) one or more files or directories onto a tape cartridge:
You should check the Tape Tool Properties window each time you write files to a tape, since the settings are not saved if you quit Tape Tool and start it up again.
Checking the Tape ContentsBefore deleting the backup files from your system, make certain that the copy occurred. At any time, you can list the files on a tape as follows:
Retrieving (Reading) Files from a TapeThe following three sections describe three methods of retrieving (reading) files from a tape. The method you choose depends upon whether you want to retrieve a small portion of the files, a large portion, or all of the files from the tape. Retrieving a Portion of the Files from a TapeTo retrieve a particular portion of the archived files from a tape cartridge (providing they were initially archived with the SunOS tar command, or through Tape Tool), follow these steps:
Retrieving Most of the Files from a TapeIf you have a long list of files, and you want to retrieve all but a few of them:
Retrieving All Files from a TapeIf you want to retrieve everything on the tape and do not want to list the contents first:
Customizing the Tape ToolBefore you read to or write from a tape or archive file, you may want to confirm that the properties you want to use are set correctly, as shown in Figure 12-7. To display the Properties window, click SELECT on the Props button. Figure 12-7 Tape Tool Properties Window
When you have set the options you want, click SELECT on the Apply button to apply the changes. These options will remain in effect until you quit the Tape Tool application. |