SlideShare ist ein Scribd-Unternehmen logo
1 von 16
COMPRESSION, SYSTEM
BACKUP & RESTORE
Objectives
 Outline the features of common
compression utilities
 Compress and decompress files using
common compression utilities
 Perform system backups using the tar,
cpio, and dump commands
 View and extract archives using the
tar, cpio, and restore commands
2
Compression
 Compression: process in which files are
reduced in size by stripping out
characters
 Compression algorithm: standard set of
instructions used to compress a file
 Compression ratio: percentage by which
the file size was decreased
 Common compression utilities include
compress, gzip, and bzip2
3
The compress Utility
 Use to compress files using the Adaptive
Lempel Ziv coding (LZW) compression
algorithm
 Average compression ratio of 40-50%
 compress command: used to compress files
 zcat command: used to display the contents
of an archive created with compress
 Can use zmore and zless commands to view
contents page-by-page
 uncompress command: used to decompress
files compressed by compress command
4
The gzip Utility
 GNU zip (gzip): used to compress files
using the Lempel-Ziv compression
algorithm (LZ77)
 Varies slightly from algorithm used by
compress
 Average compression ratio of 60-70%
 Uses .gz filename extension by default
 gunzip command: used to decompress
.gz files
5
The bzip2 Utility
 bzip2 command: used to compress files
using Burrows-Wheeler Block Sorting
Huffman Coding compression algorithm
 Cannot compress directory full of files
 Cannot use zcat and zmore to view files
○ Must use bzcat command
 Compression ratio is 50% to 75% on average
 Uses .bz2 filename extension by default
 bunzip2 command: used to decompress
files compressed via bzip2
6
System Backup
 System backup: process whereby files are
copied to an archive
 Archive: location (file or device) that
contains copy of files
 Typically created by a backup utility
 Should backup user files from home
directories and any important system
configuration files
 Possibly files used by system services as well
 Several backup utilities available
 tar, cpio, dump/restore, burning software
Linux+ Guide to Linux Certification, 3e 7
System Backup (continued)
Linux+ Guide to Linux Certification, 3e 8
Table 11-4: Common tape device files
The tar Utility
 Tape archive (tar) utility: one of oldest
and most common backup utilities
 Can create archive in a file on a filesystem
or directly on a device
 tar command: activates tar utility
 Arguments list the files to place in the
archive
 Accepts options to determine location of
archive and action to perform on archive
Linux+ Guide to Linux Certification, 3e 9
The tar Utility (continued)
Linux+ Guide to Linux Certification, 3e 10
-x Extract Archive
-c Create New Archive
-r Append to Archive
-v verbose
-f Write/Read File
-t List Archive Contents
-z Compress using gzip (c mode only)
The tar Utility (continued)
 tar utility does not compress files inside
archive
 Time needed to transfer archive across a
network is high
 Can compress archive
 Backing up files to compressed archive on
a filesystem is useful when transferring
data across a network
 Use options of the tar command to compress
an archive immediately after creation
Linux+ Guide to Linux Certification, 3e 11
The cpio Utility
 Copy in/out (cpio): common backup
utility
 Activated by the cpio command
○ Has various options
 Includes options similar to tar utility
 Has added features
○ Ability to back up device files
○ Long filenames
 Uses absolute pathnames by default when
archiving
Linux+ Guide to Linux Certification, 3e 12
The dump/restore Utility
 dump/restore: Used to back up files and
directories to device or file on filesystem
 Works only with files on ext2 and ext3
filesystems
 Designed to backup entire filesystems to
an archive
 /etc/dumpdates: file used to store
information about incremental and full
backups
Linux+ Guide to Linux Certification, 3e 13
The dump/restore Utility
(continued)
 Full backup: archiving all data on
filesystem
 Incremental backup: backs up only data
that has changed since last backup
 Can perform up to nine different incremental
backups
 dump command: create archives for full
or incremental backup
 restore command: extract archives
created with dump
Linux+ Guide to Linux Certification, 3e 14
Summary
 Many compression utilities are available for
Linux systems; each uses a different
compression algorithm and produces a
different compression ratio
 Files can be backed up to an archive using
a
backup utility
 To back up files to CD-RW or DVD-RW, use
burning software instead of a backup utility
Linux+ Guide to Linux Certification, 3e 15
Summary (continued)
 tar is the most common backup utility
used today
 Typically used to create compressed
archives called tarballs
Linux+ Guide to Linux Certification, 3e 16

Weitere ähnliche Inhalte

Was ist angesagt?

Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating Systemsubhsikha
 
A Quick Introduction to Linux
A Quick Introduction to LinuxA Quick Introduction to Linux
A Quick Introduction to LinuxTusharadri Sarkar
 
Linux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.comLinux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.comStavros Skamagkis
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in LinuxKnoldus Inc.
 
Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 
PostgreSQL and Linux Containers
PostgreSQL and Linux ContainersPostgreSQL and Linux Containers
PostgreSQL and Linux ContainersJignesh Shah
 
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...Christoph Adler
 
Slideshare - linux crypto
Slideshare - linux cryptoSlideshare - linux crypto
Slideshare - linux cryptoJin Wu
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsAhmed El-Arabawy
 
Study of Chromium OS
Study of Chromium OSStudy of Chromium OS
Study of Chromium OSWilliam Lee
 

Was ist angesagt? (20)

SELinux Basic Usage
SELinux Basic UsageSELinux Basic Usage
SELinux Basic Usage
 
Video Drivers
Video DriversVideo Drivers
Video Drivers
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
A Quick Introduction to Linux
A Quick Introduction to LinuxA Quick Introduction to Linux
A Quick Introduction to Linux
 
Linux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.comLinux commands cheat sheet by linoxide.com
Linux commands cheat sheet by linoxide.com
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Linux process management
Linux process managementLinux process management
Linux process management
 
PostgreSQL and Linux Containers
PostgreSQL and Linux ContainersPostgreSQL and Linux Containers
PostgreSQL and Linux Containers
 
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...
 
Li̇nux-101
Li̇nux-101Li̇nux-101
Li̇nux-101
 
Slideshare - linux crypto
Slideshare - linux cryptoSlideshare - linux crypto
Slideshare - linux crypto
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and Permissions
 
Linux Kernel Overview
Linux Kernel OverviewLinux Kernel Overview
Linux Kernel Overview
 
Tails os
Tails osTails os
Tails os
 
Git
GitGit
Git
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Study of Chromium OS
Study of Chromium OSStudy of Chromium OS
Study of Chromium OS
 

Ähnlich wie Compression

RHEL Log-files, RPM, Backup & Recovery
RHEL Log-files, RPM, Backup & RecoveryRHEL Log-files, RPM, Backup & Recovery
RHEL Log-files, RPM, Backup & RecoveryAneesa Rahman
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1Lilesh Pathe
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsBITS
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linuxZkre Saleh
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linuxnejadmand
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemSadia Bashir
 
101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystemsAcácio Oliveira
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting StartedAngus Li
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 

Ähnlich wie Compression (20)

Backup and recovery
Backup and recoveryBackup and recovery
Backup and recovery
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
RHEL Log-files, RPM, Backup & Recovery
RHEL Log-files, RPM, Backup & RecoveryRHEL Log-files, RPM, Backup & Recovery
RHEL Log-files, RPM, Backup & Recovery
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Linux
LinuxLinux
Linux
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformatics
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linux
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems
 
How ubuntu works???
How ubuntu works???How ubuntu works???
How ubuntu works???
 
linuxtl04.pptx
linuxtl04.pptxlinuxtl04.pptx
linuxtl04.pptx
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
 
Tutorial 2
Tutorial 2Tutorial 2
Tutorial 2
 
101 apend. backups
101 apend. backups101 apend. backups
101 apend. backups
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
test
testtest
test
 
Linux
Linux Linux
Linux
 

Kürzlich hochgeladen

The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Kürzlich hochgeladen (20)

The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Compression

  • 2. Objectives  Outline the features of common compression utilities  Compress and decompress files using common compression utilities  Perform system backups using the tar, cpio, and dump commands  View and extract archives using the tar, cpio, and restore commands 2
  • 3. Compression  Compression: process in which files are reduced in size by stripping out characters  Compression algorithm: standard set of instructions used to compress a file  Compression ratio: percentage by which the file size was decreased  Common compression utilities include compress, gzip, and bzip2 3
  • 4. The compress Utility  Use to compress files using the Adaptive Lempel Ziv coding (LZW) compression algorithm  Average compression ratio of 40-50%  compress command: used to compress files  zcat command: used to display the contents of an archive created with compress  Can use zmore and zless commands to view contents page-by-page  uncompress command: used to decompress files compressed by compress command 4
  • 5. The gzip Utility  GNU zip (gzip): used to compress files using the Lempel-Ziv compression algorithm (LZ77)  Varies slightly from algorithm used by compress  Average compression ratio of 60-70%  Uses .gz filename extension by default  gunzip command: used to decompress .gz files 5
  • 6. The bzip2 Utility  bzip2 command: used to compress files using Burrows-Wheeler Block Sorting Huffman Coding compression algorithm  Cannot compress directory full of files  Cannot use zcat and zmore to view files ○ Must use bzcat command  Compression ratio is 50% to 75% on average  Uses .bz2 filename extension by default  bunzip2 command: used to decompress files compressed via bzip2 6
  • 7. System Backup  System backup: process whereby files are copied to an archive  Archive: location (file or device) that contains copy of files  Typically created by a backup utility  Should backup user files from home directories and any important system configuration files  Possibly files used by system services as well  Several backup utilities available  tar, cpio, dump/restore, burning software Linux+ Guide to Linux Certification, 3e 7
  • 8. System Backup (continued) Linux+ Guide to Linux Certification, 3e 8 Table 11-4: Common tape device files
  • 9. The tar Utility  Tape archive (tar) utility: one of oldest and most common backup utilities  Can create archive in a file on a filesystem or directly on a device  tar command: activates tar utility  Arguments list the files to place in the archive  Accepts options to determine location of archive and action to perform on archive Linux+ Guide to Linux Certification, 3e 9
  • 10. The tar Utility (continued) Linux+ Guide to Linux Certification, 3e 10 -x Extract Archive -c Create New Archive -r Append to Archive -v verbose -f Write/Read File -t List Archive Contents -z Compress using gzip (c mode only)
  • 11. The tar Utility (continued)  tar utility does not compress files inside archive  Time needed to transfer archive across a network is high  Can compress archive  Backing up files to compressed archive on a filesystem is useful when transferring data across a network  Use options of the tar command to compress an archive immediately after creation Linux+ Guide to Linux Certification, 3e 11
  • 12. The cpio Utility  Copy in/out (cpio): common backup utility  Activated by the cpio command ○ Has various options  Includes options similar to tar utility  Has added features ○ Ability to back up device files ○ Long filenames  Uses absolute pathnames by default when archiving Linux+ Guide to Linux Certification, 3e 12
  • 13. The dump/restore Utility  dump/restore: Used to back up files and directories to device or file on filesystem  Works only with files on ext2 and ext3 filesystems  Designed to backup entire filesystems to an archive  /etc/dumpdates: file used to store information about incremental and full backups Linux+ Guide to Linux Certification, 3e 13
  • 14. The dump/restore Utility (continued)  Full backup: archiving all data on filesystem  Incremental backup: backs up only data that has changed since last backup  Can perform up to nine different incremental backups  dump command: create archives for full or incremental backup  restore command: extract archives created with dump Linux+ Guide to Linux Certification, 3e 14
  • 15. Summary  Many compression utilities are available for Linux systems; each uses a different compression algorithm and produces a different compression ratio  Files can be backed up to an archive using a backup utility  To back up files to CD-RW or DVD-RW, use burning software instead of a backup utility Linux+ Guide to Linux Certification, 3e 15
  • 16. Summary (continued)  tar is the most common backup utility used today  Typically used to create compressed archives called tarballs Linux+ Guide to Linux Certification, 3e 16