• Aucun résultat trouvé

Using the ,y,admin Program

Dans le document Operating System The (Page 56-59)

Backing Up File Systems

6.3 Using the ,y,admin Program

The .1I1tJ4mi" program performs daily and periodic backups, lists backup files, and restores individual files trom backup disks. The program presents each task as an item in a menu. To perrorm a task, simply choose the appropriate item from the menu and supply the required information.

6.3.1 Creating Backups

To create barkups with the 11I1tJ4m;" progra.m, you need several formatted ftoppy disks. The exact number depends on the number or files to be copied; ror example, some periodic backups require as many as nine disks. For details on how to format a ftoppy disk, see the section "Formatting Floppy Disks" in Chapter 4.

To create a baekup, rollow these steps:

6-2

1. Log in as the super-user.

2. Type:

sysadmin

and press the RETURN key. The program displays a file system maintenance menu.

File System Maintenance Type 1 to do daily backup

2 to do a periodic backup 3 to get a backup listing

" to restore a file 5 to quit

3. Type 1 ror a daily backup or

e

ror a periodic backup. Then press the RETURN key. Note that if the system has never had a periodic backup, it automatically performs one, even if you have chosen a

Backing Up File Systems daily backup.

4. Insert a. floppy disk in drive 1, w3.it ror the drive to accept the disk (all drive noise ~hould stop), and press the RETURN key. The system displays the current date and the date of the last backup (it displays

"the epoch" ir there has been no backup). The system then begins to copy files to the floppy disks. Irthe disk runs out orspace, the program displays the message:

Change volumes

5. Remove the first disk and insert a new disk. Wait for the drive to accept the disk, then press the RETURN key. The program continues to copy files to the new disk. Repeat this step until the program displays the message:

DONE

When doing a periodic backup, you may need to repea.t the last ~tep several times berore the backup is complete. You should label each disk as you remove it rrom the disk drive. For example, label the first disk "Volume 1", the second

"Volume 2", and so on.

8.3.2 Getting a Backup Listing

You can keep a record orthe files you have backed up by invoking the Iy,,,tlmin program and selecting the third item in the menu. The program copies the names of all files from the backup disks to the temporary file /tmp/ backup.lilt.

This listing is especially convenient if you keep detailed records of the files copied in each backup. The backup listing is available after every d3.ily or periodic backup.

To get the listing, follow these steps:

1. Log in as the super-user.

2. Type sysadmin

and press the RETURN key. The program displays the system maintenance menu.

3. Type Sand press the RETURN key. The program asks you to reinsert the backup disks in the same order that you inserted them during the backup.

4. Insert the first disk, wait until the drive accepts the disk, then press the RETURN key. The program automatically reads the filenames

XENIX Operations Guide

rrom the backup disk and pbces them in the list file. When the program has read all the names, it asks ror the next disk.

5. Remove the first disk and insert the next. Wait for the drive to accept the disk and press the RETURN key. Repeat this step until all disks have been read.

You may produce a printed copy or the bar.kup list by printing the list at the lineprinter. Type

Ipr /tmp/backup.list

and prt"ss the RETURN key. Arter printing the file, you should remove it rrom the / tmp directory with the rm command to save space.

6.3.3 Restoring a Backup File

You can restore files from the backup disk.s by invoking the IJI44mira program and selecting the rourth item in the menu. You will need the complete set of backup disks containing the latest version or the file you wish to restore. You will also need the "rull pathname" or the file you wish to restore. This is the name given ror the file in the backup listing.

To restore a file, follow these steps:

1. Log in as the super· user.

2. Type sysadmin

and press the RETURN key. The program displays the file system maintenance menu.

3. Type -I and press the RETURN key. The program asks you to type the rull pathname oC the file you wish to restore.

4. Type the pathn3me and press the RETURN key. The program asks ror another pathname.

5. Repeat step 4 to enter another pathname or press the RETURN key to continue the program. If you press the RETURN key, the program asks you to insert the first disk in the backup set.

6. Insert the disk, wait for the drive to accept the disk, and press the RETURN key. The program displa.ys the inode numbers or the files you have given, then asks ror the volume number of the backup disk containing the files.

Backing Up File Systems

7. Insert. the disk containing the files, type the volume number I and press the RETURN key. The program searches the di::k for the specified files. Ir found, the files are copied to your current directory.

It not found, the program asks tor the next volume.

8. Repe:lt step 7 until all files have been fOl1nd and copied.

Dans le document Operating System The (Page 56-59)

Documents relatifs