5.1 Backups and tar Flashcards
There are three different types of backup?
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.
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.
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.
_______ is the industry standard for compression on Unix-like systems.
gzip is the industry standard for compression on Unix-like systems.
_______ offers better compression but is much slower than gzip.
bzip2 offers better compression but is much slower than gzip.
What is the general syntax of the tar command?
tar [option(s)] [archive_name] [objects_to_archive]
cvvf are short form options for _____.
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.
Tar: Best Practices
In order to maintain confidentiality, privacy, and integrity, what are the best practices when using tar?
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.
What does this commnad do?
tar xvvf my_laptop_backup.tar
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.
Incremental backups store a list of which files have changed in a snapshot file, with the extension _____.
Incremental backups store a list of which files have changed in a snapshot file, with the extension .snar.
What are some of the drawbacks of using incremental backups?
- Restoring is slower: you must restore the latest
full backup, plus all the previous incremental backups. - There may be a loss of data if a single backup is corrupted.
- You must verify an archive was created with no errors, using the tar W option.
After listing the contents of an incremental backup, what do the following letters indicate:
- **`Y`** - **`N`** - **`D`**
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.
What command would you use to list the contents of an incremental backup?
tar [name of backup] --incremental
What is the difference between a full
and incremental
backup?
- 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