5.1 Backups and tar Flashcards

1
Q

There are three different types of backup?

A

full, incremental, and differential.

Full backups are more reliable and offer complete restoration

Incremental and differential backups include only data that changed since the last full or incremental backup. They are fast and use less disk space. Incremental backups require each previous incremental backup to be present to restore the data.

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

The ______ command is a Linux utility that system
administrators use to create a backup.

_________ takes files we want to back up and creates an archive of them.

A

The tar command is a Linux utility that system administrators use to create a backup.

tar (tape archive) takes files we want to back up and creates an archive of them.

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

_______ is the industry standard for compression on Unix-like systems.

A

gzip is the industry standard for compression on Unix-like systems.

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

_______ offers better compression but is much slower than gzip.

A

bzip2 offers better compression but is much slower than gzip.

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

What is the general syntax of the tar command?

A

tar [option(s)] [archive_name] [objects_to_archive]

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

cvvf are short form options for _____.

A

tar

c - stands for create. Always needed when creating an archive.

v - stands for verbose. It will print progress status and useful information as it’s running.

f - stands for create an archive file, followed by the title of the archive.

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

Tar: Best Practices

In order to maintain confidentiality, privacy, and integrity, what are the best practices when using tar?

A

When creating archives, be sure they are not writable by an untrusted user.

Inspect all data, such as passwords, before writing to an archive.

Monitor backups. tar is vulnerable to DoS attacks.

Pay attention to diagnostic and exit status of tar.

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

What does this commnad do?

tar xvvf my_laptop_backup.tar

A

Restores data from a backup

x - Extracts the files from the archive and writes them to disk.

vv - Shows information and progress as tar runs

f - specifies the archive file to use.

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

Incremental backups store a list of which files have changed in a snapshot file, with the extension _____.

A

Incremental backups store a list of which files have changed in a snapshot file, with the extension .snar.

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

What are some of the drawbacks of using incremental backups?

A
  1. Restoring is slower: you must restore the latest
    full backup, plus all the previous incremental backups.
  2. There may be a loss of data if a single backup is corrupted.
  3. You must verify an archive was created with no errors, using the tar W option.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

After listing the contents of an incremental backup, what do the following letters indicate:

- **`Y`** 
- **`N`** 
- **`D`**
A

After listing the contents of an incremental backup, what do the following letters indicate:

- **`Y`** indicates that the file is contained in the `backup.tar` archive. Newly added
- **`N`** indicates that the file was present in the directory at the time the archive was made, but was not added to the `backup.tar` archive because it has not changed since the last backup. Not newly added
- **`D`** indicates the file is a directory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What command would you use to list the contents of an incremental backup?

A
  • tar [name of backup] --incremental
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between a full and incremental backup?

A
  • A full backup saves every file on a hard drive.

- An incremental backup saves only the data that has changed since the last full backup

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