Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
78 Cards in this Set
- Front
- Back
File corruption can occur as the result many things. |
Improper system shutdown, magnetic fields from motors and other electrical devices near the data, or an area of the disk going bad can cause file corruption. |
|
The three most common types of backups are |
full, incremental, and differential backups |
|
Backup methods performed by organizations vary. However, all organizations take a number of factors into account when determining which method to utilize: |
The criticality of the dataThe amount of data to be backed upThe time window available to do backupsFunds available for a backup system |
|
The differential backup is a compromise between |
a full backup and an incremental backup |
|
To adequately test the capability to recover from data lost, the network support staff should be able to accomplish the following restoration tasks, which are |
Restore a file, Restore a directory, Restore a file system, Restore a harddrive |
|
Restore a file |
Thousands of files typically are backed up in any organization. If a user accidentally deletes or overwrites a file, an administrator should be able to find that file on the backup tapes and restore it to the user's home directory on a server or on the workstation. |
|
Restore a directory |
If a directory is damaged, an administrator should be able to restore the entire directory structure, with all subdirectories and files intact. |
|
Restore a file system |
If necessary, an administrator should be able to restore an entire file system. |
|
Restore a hard drive |
In the event of a total failure of a hard drive, an administrator should be able to recreate the contents of the original drive, including the operating system, applications software, and data, if applicable. |
|
Streaming magnetic tape is the most common media for backing up large amounts of data because it is |
inexpensive and can store large amounts of data. |
|
Tape drives are |
sequential recording devices |
|
If volume management is not running on a system, the vold daemon is |
not running |
|
By default, volume management is |
is always running on the system to automatically manage CD ROMs, floppy diskettes, and removable SCSI disks, such as Zip and Jaz disks. |
|
When the user inserts a CD ROM into the drive it is automatically detected. However, volume manager does not automatically detect when the user inserts a |
floppy into the floppy drive |
|
The volcheck (volume check) command or Open Floppy option on the CDE File Manger File menu, instructs Solaris to do the following: |
1) Check the floppy drive 2) Determine the disk type, whether UNIX or DOS 3)Temporarily place or mount the floppy disk under the /floppy directory of the hard drive. |
|
To access a formatted disk from the command line: |
1) Change directories to /floppy 2)Type ls and press Enter. The name of the diskette is displayed as the name of a directory. 3)Type cd diskette-name and press Enter. 4)Type ls and press Enter. The files on the diskette are displayed. The student can copy to and from the diskette using the cp command. |
|
To eject a floppy diskette the student must not be in the /floppy directory. The "Device busy" message will appear if the student is in the /floppy directory. Once out of the /floppy directory, the student then types |
eject fd |
|
Later in this chapter the student will be introduced to two popular UNIX backup commands |
tar and cpio |
|
In order to copy files to a diskette using either tar or cpio the diskette must be formatted, using |
fdformat or the CDE format command |
|
Manager window displays the contents of the CD ROM. The student can access data from this window and the command line interchangeably using the |
pathname /cdrom/cdrom0 |
|
To eject the CD ROM the student must not be in the |
cdrom directory |
|
Before using a new floppy disk, the disk must first be |
formatted |
|
Mtools is a |
collection of utilities to access MS DOS disks from UNIX without mounting the disks |
|
Most floppy disks are sold with the low level format already done. The student will need to do it only in exceptional cases. Such cases would be when the user thinks a disk has |
corruption or one or more bad blocks. |
|
Thefdformat command is used to |
do a low level format on a new floppy disk |
|
Device names tend to vary between versions of UNIX. The standard floppy disk drive in a Linux system is accessed using the |
device path /dev/fd0 |
|
To perform a low level format of a floppy disk, use the command: |
fdformat /dev/fd0 |
|
The command to create a file system on a standard floppy is |
mkfs -t ext2 /dev/fd0 1440 |
|
The -t ext2 tells mkfs what |
file system type to make |
|
A standard 1.44MB floppy has 80 tracks with |
18 sectors each |
|
If a student is using a graphical display such as GNOME, a gfloppy may be |
used to accomplish floppy formatting of either type, including putting a file system on it |
|
In GNOME, gfloppy may be found on the Utilities menu. It may also be run as a |
shell command |
|
Use the mount command to |
mount a floppy disk with a UNIX file system on it |
|
If a correct set of options has been defined in the file /etc/fstab to allow this operation, the command to mount a floppy disk is: |
mount /mnt/floppy |
|
When the student is finished with a UNIX mounted floppy, it must be |
unmounted |
|
the umount command for floppys |
umount /mnt/floppy |
|
In GNOME, user mountable drives may be mounted and unmounted using |
the Drive Mount applet |
|
the student may also install a Drive Mount applet in a panel and configure its properties to work with |
the CD ROM drive |
|
The student may mount and unmount CDs as nonroot from a terminal window using these commands: |
mount /mnt/cdrom, umount /mnt/cdrom |
|
The UNIX operating system has several integrated utilities that allow |
multiple files to be backed up and compressed |
|
The tar (tape archive) command enables |
the student to back up single or multiple files in a directory hierarchy |
|
The tar command is standard with all |
versions of the UNIX operating system |
|
tar originally was developed for use with |
tape drives |
|
The tar command can create an archive from a |
single file |
|
Tarballs |
which are groups of files combined into one |
|
The most frequently used options available with the tar command are |
c, t, and x |
|
tar functions are |
one letter characters used to create a tar file, view the contents of a tar file, or extract files from a tar file |
|
tar Functions: c (create) |
is used to archive one or more files or directories to create an archive file. |
|
tar Function: t (table of contents) |
is used to see a table of contents of the tar file. This is a listing of the files that were combined to make the one tar file. |
|
tar Function: x (extract) |
is used to extract the file or files from the archive and separate them into multiple files again. The tar file still exists after this is done. |
|
Compression is a valuable tool because |
it reduces the amount of disk space that files occupy, while still keeping the files readily available. |
|
The compress utility uses a special format to reduce the size of the file anywhere from |
20 percent to 80 percent, depending on the type of file |
|
If the compress utility determines that the file cannot be compressed or that there will be no reduction in file size, the file will |
remain unchanged. |
|
When files are compressed with the compress command, the existing file is |
replaced using the same name but with a .Z suffix appended |
|
verbose command |
-v |
|
Use the ls -l (list long) command before |
compressing a file to see its original size in bytes |
|
The corresponding command used to reverse the effects of the compress command is |
uncompress |
|
The uncompress command is a UNIX utility and can be used only to |
uncompress files compressed with the UNIX compress command |
|
to view the contents of the june02bkup.tar.Z compressed file, use the following command: |
uncompress -c june02bkup.tar.Z | more |
|
To restore files from a tape archive |
1) Make a new directory and change to it 2) Extract the home directory from tape 3) Uncompress the compressed tar file 4) Extract the tar file 5) Moves files as needed |
|
GNU provides several commands that can supplement the |
tar and jarcommands |
|
The gzip utility is a popular |
open source tool for combining and compressing files |
|
The GNU tar command supports |
compression |
|
The -z option compresses with gzip and -Z compresses using the |
compress command |
|
tar -cvzf /temp/bkup.tar /home/user2 will use the |
gzip command to create a compressed bkup.tar file of the user2 directory tree |
|
Another feature GNU tar supports is the ability to span a |
backup across multiple (-M) volumes, whether disks or tapes |
|
Due to the popularity of the PKZIP and WinZip programs used in the DOS and Windows worlds, there are now UNIX versions that work in |
the same way and can read files zipped on a PC |
|
The zip command is similar to the |
jar command and is capable of compressing multiple files into a single zip file |
|
The unzip command is used to |
uncompress a file created with zip |
|
If the version of UNIX that the student is using does not have the zip command, the student should do an |
Internet search to locate a download site |
|
cpio Command Option: o |
Creates a file archive. Copies a list of files or pathnames to a file or a device (copy out). |
|
cpio Command Option: l |
Extracts the file archive from the device or file (copy in). |
|
cpio Command Option: p |
Reads from the file or device to get pathnames. |
|
cpio Command Option: t |
List the table of contents of the device without restoring the files. |
|
cpio Command Option: v |
Executes in verbose mode displaying each file name to the screen. |
|
cpio Command Option: O |
Directs the output to a file. |
|
cpio Command Option: I |
Read the contents of a file as an input archive. |
|
Features of Dedicated Backup Applications |
-Designed specifically to work with various backup media -More flexibility with scheduling of backups -Graphical user interface -Drag and drop capabilities for backup and restore |