Sec. 40 Backup and Recovery Methods Flashcards

1
Q

cpio and tar

A

cpio and tar create and extract archives of files .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

gzip, bzip2, and xz

A

Archives are often compressed with gzip, bzip, or xz. the archive file may be written to disk , magnetic tape, or any other device which can hold files.
Archives are very useful for transferring files from on filesystem or machine to another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

dd

A

dd -this powerfull utility is often used to transfer raw data between media. it can copy entire partitions or hard disks .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

rsync

A

rsync - this powerful utility can synchronize directory subtrees or entire filesystems across a network, or between different filesystems locations on a local machine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

mt

A

mt - this utility is useful for querying and positioning tapes before performing backups and restores.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe some of tar commands features :

A
  • when creating a tar archive, for each directory given as an arguement, all files and subdirectories will be included in the archive.
  • when restoring, it reconstitutes directories as necessary.
  • it even has a –newer option that lets you do incremental backups
  • the version of tar used in linux can also handle backups that do no fit on one tape or whatever device you use.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

tar

A

-arg - directory

-description: for each directory given, all files and subdirectories will be included in the archive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

when restoring tar, it reconstitutes ….?

A

when restoring tar , it reconstitutes the directories as necessary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

tar even has a –newer option that …….?

A

tar even has a –newer option that lets you do incremental backups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

by default tar will recursively …….?

A

by default tar will recursively include all subdirectories in the archive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

archive

A

an archive is a file that contains the contents fo many files , while still identifying the names of the files , their owners and so forth.

-in addition archives records access permissions , user, and group , size in bytes, and data modification time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

the files in archives are called ……?

A

memebers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

the term extraction refers to the process of copying an archive member (or multiple members) into a file in the file system.

A

Extracting all the memebers of an archive is often call extracting the archive.

or unpacking the archive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does the term extraction refer to w.r.t. archives ?

A

the term extraction refers to the process of copying an archive member or multiple members into a file in the file system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

extracting an archive does not destroy the archive’s structure, just as creating an archive does not destroy the copies of hte files that exist outside the archive.

A

You may list the members in a given archive, or append members to a pre-existing archive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

the tar program provides teh abiltiy to create tar archives, as well as varius other kinds of manipulation.

A

You can use tar archives in many ways. there are three important ones: storage, backup, and transportation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

conventionally , tar archives are given names that end with …..?

A

.tar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

what are three main options of the tar program?

A
  1. –create
  2. –list
  3. –extract
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

the main types of arguements of the tar fall inot one of two classes. what are they?

A
  1. operations
  2. options
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

w.r.t tar am I required to specify options?

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Can i specify more than one operation with tar?

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

tar –create or tar -c

A

create a new tar archive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

tar –list or tar -t

A

list the contents of an archive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

tar –extract or tar -x

A

extract one or more members from an archive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
**tar --file=archive-name** or **tar -f archive-name**
specify the name of an archive file
26
**tar** *--verbose* or **tar** *-v*
show the files being worked on as **tar** is running
27
if I want to see the progress of **tar** as it writes files into the archive , I can use what option?
*--verbose*
28
when reading archives , **tar** by default prints only the names of the members being extracted.
when writing archives **tar** does not print file names by default.
29
**tar** *--same-permissions* or **tar** *-p*
ensures files are restored with their original permissions.
30
**tar -x** or **tar --extract**
extracts members from a archive, all by default. I can narrow the list to only specify specific files . if a **directory** is specified, than all included files and subdirectories will are also extracted.
31
what must I specify when creating an archive?
what/which files I want placed in the archive.
32
is the **--file=file\_name.tar** considered one arguement or two ?
one
33
**tar** always sees its first arguement as an _________ ?
option
34
when using **tar** and using the long options is order important?
no
35
when does the order of the options become more important?
when using the short options versions.
36
when creating an archive using **tar** does it destroy the orginal files ?
no
37
what **access** would i need to the working directory in order to create an archive in that directory.
write access
38
what would happen if i did the following: $ **tar --create --file=collection.tar jazz** and the archive collection.tar already existed.
the orginal **collection.tar** would be overwritten
39
If I would like to add files to an already esixting archive what option would I use?
**--append** ; **-r** instead of the option **--create, -c**
40
How would I archive a directory?
by specifing the directory name as the filename arguement in **tar.**
41
where is the archive placed when **tar** program is invoked?
in the directory that **tar** was invoked.
42
what is the short version of the **--list** option for **tar**?
**-t**
43
I can force GNU **tar** to show member names when creating an archive by using what option?
**--show-stored-names**
44
with what option can I do incremental backups using **tar**?
**--newer** ; **-N**
45
when ever I use the option **--newer** or **-N**. I need to specify one of two things. what are they?
1. a date or 2. a qualified file name.
46
**rsync** has the ability when copying files from on directories, it will only \_\_\_\_\_\_\_\_ will be copied over.
differences
47
**gzip**
uses lempel-ziv coding (LZ77 ) and produces **.giz** files
48
**bzip**
uses *burrows-wheeler* block sorting text compression algorithim and huffman coding and produces **.bz2** files .
49
do decompression times vary as much as compression times ?
no
50
what is rarely used w.r.t. file compression?
**.zip** files
51
How would use compression at the same time as **tar** w.r.t. the following example: $**tar zcvf source.tar source.**
**$ tar zcvf source.tar.gz source**
52
can **compression** and **archiving** happen at the same time?
yes.
53
it is often desired to compress files to save......?
1. diskspace and or 2. lower network transmission time.
54
modern machines would find the process of \_\_\_\_\_\_\_\_\_\_\_\_\_-\_\_\_\_\_\_\_\_\_\_-\_\_\_\_\_\_\_\_\_\_ faster than transmiting uncompressed files
**compress - transmit-decompress**
55
For larger files what two compression utilities are used ?
1. **bzip2** or 2. **zx**
56
For smaller files what compressing utility is used?
**gzip**
57
If I wanted to create a 10mb file filled with zeros what would I do w/ **dd?**
**$ dd if=/dev/zero of=outfile bs=1M count=10**
58
**dd** is one of the _________ \_\_\_\_\_\_\_\_ and is \_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_
**dd** is one of the orginal unix utilities and is extermely versatile.
59
Using **dd** how would I create a backup for **/dev/sda1**?
$ **dd if=/dev/sda1 of=partition1.img**
60