Sec. 40 Backup and Recovery Methods Flashcards
cpio and tar
cpio and tar create and extract archives of files .
gzip, bzip2, and xz
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.
dd
dd -this powerfull utility is often used to transfer raw data between media. it can copy entire partitions or hard disks .
rsync
rsync - this powerful utility can synchronize directory subtrees or entire filesystems across a network, or between different filesystems locations on a local machine.
mt
mt - this utility is useful for querying and positioning tapes before performing backups and restores.
Describe some of tar commands features :
- 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.
tar
-arg - directory
-description: for each directory given, all files and subdirectories will be included in the archive.
when restoring tar, it reconstitutes ….?
when restoring tar , it reconstitutes the directories as necessary.
tar even has a –newer option that …….?
tar even has a –newer option that lets you do incremental backups
by default tar will recursively …….?
by default tar will recursively include all subdirectories in the archive.
archive
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.
the files in archives are called ……?
memebers
the term extraction refers to the process of copying an archive member (or multiple members) into a file in the file system.
Extracting all the memebers of an archive is often call extracting the archive.
or unpacking the archive.
what does the term extraction refer to w.r.t. archives ?
the term extraction refers to the process of copying an archive member or multiple members into a file in the file system.
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.
You may list the members in a given archive, or append members to a pre-existing archive.
the tar program provides teh abiltiy to create tar archives, as well as varius other kinds of manipulation.
You can use tar archives in many ways. there are three important ones: storage, backup, and transportation.
conventionally , tar archives are given names that end with …..?
.tar
what are three main options of the tar program?
- –create
- –list
- –extract
the main types of arguements of the tar fall inot one of two classes. what are they?
- operations
- options
w.r.t tar am I required to specify options?
no
Can i specify more than one operation with tar?
no
tar –create or tar -c
create a new tar archive
tar –list or tar -t
list the contents of an archive
tar –extract or tar -x
extract one or more members from an archive.