Backing Up, Compressing and Restoring
Backing Up, Compressing and Restoring
Backing Up, Compressing and Restoring
Restoring
Need for Backups
Reliability
Speed
Availability
Ease of use and documentation
Backup Strategies
Full Backup
Complete backup of all required files
Performed in regular intervals
Incremental Backup
Backing up files that has been modified after last full
backup
To ensure that state of files stored in backup are
consistent with original files
Concept of backup Levels
Portability
Support for unattended or automated backups
User Interface for the backup utility
Support for remote backups
Media types supported
Cost of the backup utility
The tar command
Syntax
Tar [options] [filenames] [directory names]
Options
First option must be either A, c d, r, t, u or x
Last option is names of files and directories to be
archived
Creating a new archive
Example:
dump -0 –f full_dump /home
Compressing Files
Zcat utility
To view contents of file without decompressing it
zcat searches for magic number , not for .z extension
Syntax for compress, uncompress and
zcat
Option Meaning
To compress files
Preferred over compress utility
Reduces size of a text file to 60 to 70% of original size
Creates a file with extension .gz
The gunzip utility used to decompress files
To decompress can use, gunzip, gzip –z or zcat
Syntax for gzip, gunzip and zcat