Transcription

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 Linux+ Guide to Linux Certification, 3e 2

3 Objectives (continued) Use burning software to back up files to CD and DVD Describe common types of Linux software Compile and install software packages from source code Use the Red Hat Package Manager to install, manage, and remove software packages Use the yum command to obtain software from Internet software repositories Linux+ Guide to Linux Certification, 3e 3

4 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 Linux+ Guide to Linux Certification, 3e 4

5 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 Linux+ Guide to Linux Certification, 3e 5

14 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 14

16 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 16

19 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 19

20 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 20

23 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 23

24 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 24

29 Software Installation Software for Linux can consist of: Binary files precompiled to run on certain hardware architectures Source code, which must be compiled before use Typically distributed in tarball format Package manager: system that defines standard package format Used to install, query, and remove packages Red Hat Package Manager (RPM): most common package manager used by Linux systems today Linux+ Guide to Linux Certification, 3e 29

30 Compiling Source Code into Programs Procedure for compiling source code into binary programs standardized among most OSS developers make command: looks for Makefile and it to compile the source code into binary using compiler Makefile: contains most of the information and commands necessary to compile a program, as well as instructions for use of commented areas make install command: copies complied executable programs to correct location Linux+ Guide to Linux Certification, 3e 30

32 Installing Programs Using RPM Packages in RPM format have filenames that indicate hardware architecture for which the software was compiled End with.rpm extension To install an RPM package, use i option to rpm command Command used to install, query, and remove RPM packages Linux+ Guide to Linux Certification, 3e 32

33 Installing Programs Using RPM (continued) After installation RPM database is updated to contain information about the installed package and files contained in it -q option: query the full package name -i option: together with q used to display full package information -f option: together with q used to display the package to which a specific file belongs -e option: used to remove a package from the system Linux+ Guide to Linux Certification, 3e 33

39 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 39

40 Summary (continued) tar is the most common backup utility used today Typically used to create compressed archives called tarballs Source code for Linux software can be obtained and compiled afterward using the GNU C Compiler Most source code is available in tarball format via the Internet Linux+ Guide to Linux Certification, 3e 40

41 Summary (continued) Package Managers install and manage compiled software of the same format The Red Hat Package Manager is the most common package manager available for Linux systems today You can install or upgrade RPM packages using the yum command yum command obtains RPM packages from software repositories on the Internet Linux+ Guide to Linux Certification, 3e 41

System Backup Strategies Objective At the conclusion of this module, the student will be able to: describe the necessity for creating a backup regimen describe the advantages and disadvantages of the most

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD 21015 Course Outline CIS 110 - INTRODUCTION TO UNIX Course Description: This is an introductory course designed for users of UNIX. It is taught

Objectives 102.4 & 102.5 Linux Package Handling by Christine Bresnahan: Christine-Bresnahan.com What is a package? A package is typically an archive (a single file containing many files) along with additional

Linux System Administration on Red Hat Kenneth Ingham September 29, 2009 1 Course overview This class is for people who are familiar with Linux or Unix systems as a user (i.e., they know file manipulation,

WES 9.2 DRIVE CONFIGURATION WORKSHEET This packet will provide you with a paper medium external to your WES box to write down the device names, partitions, and mount points within your machine. You may

How to Restore a Linux Server Using Bare Metal Restore This article refers to firmware version 5.4 and higher, and the Barracuda Linux Backup Agent 5.4 and higher. Use the steps in this article to restore

Backup. If your computer refuses to boot or load Windows or if you are trying to restore an image to a partition the Reflect cannot lock (See here), and then you will have to start your PC using a rescue

Configuring Backup Settings Objectives After completing this lesson, you should be able to: Use Enterprise Manager to configure backup settings Enable control file autobackup Configure backup destinations

How to Build an RPM Author: Chris Negus Editor: Allison Pranger 09/16/2011 OVERVIEW You have created some software that you want to install on Red Hat Enterprise Linux systems. Now that it is done, the

OPTICAL MEDIA WHITEPAPER Lowering the cost of UNIX and Linux hardware with BackupEDGE BackupEDGE was designed to optimize the capabilities of optical media for backups. Using Optical Media With Microlite

Creating a Complete Backup of Shelby v5 Data Backup the Shelby folder and all its contents Since the Shelby v5 software now stores information in the \Shelby\ssv5.dat folder as well as in the SQL database;

Planning Your Installation 1. Installation Instructions - Unix & Linux There are two types of Gridgen installations: a First Time Installation and a Maintenance Release Installation. A First Time Installation

Module 16: Some Other Tools in UNIX We have emphasized throughout that the philosophy of Unix is to provide - (a) a large number of simple tools and (b) methods to combine these tools in flexible ways.

Partek Flow Installation Guide Partek Flow is a web based application for genomic data analysis and visualization, which can be installed on a desktop computer, compute cluster or cloud. Users can access

Advantages of Amanda over Proprietary Backup Gregory Grant Revision 02 Abstract This white paper discusses how Amanda compares to other backup products. It will help you understand some key Amanda differences,

Fedora Core 4 Managing software with yum Stuart Ellis Edited by Paul W. Frields Copyright 2005 Red Hat, Inc. and others. The text of and illustrations in this document are licensed by Red Hat under a Creative

1.1 1 of 5 Integrating SNiFF+ with the Data Display Debugger (DDD) 1. Introduction In this paper we will describe the integration of SNiFF+ with the Data Display Debugger (DDD). First we will start with

File Transfer Protocol (FTP) File Transfer Protocol Sometimes browsing for information is not sufficient you may want to obtain copies of software programs or data files for your own use and manipulation.

Setting-Up an Open-Source Backup Software Amanda Community in About 5 Minutes Abstract Amanda is the most popular open source backup and recovery software in the world because of its openness, robustness,

Introduction to Mac OS X The Mac OS X operating system both a graphical user interface and a command line interface. We will see how to use both to our advantage. Using DOCK The dock on Mac OS X is the

For Linux distributions Software version 4.1.7 Version 2.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by

For Linux distributions Software version 4.1.7 Version 2.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by

Server Installation/Upgrade Guide System Version 3.8 2001-2009 Echo 360, Inc. Echo360 is a trademark of Echo360, Inc. Echo360 is a registered trademark of Echo360 Inc. in Australia. All other trademarks

Package Management What is a Package Management System? A package management system (or PMS) is a collection of tools to automate the process of installing, upgrading, configuring, and removing software

Backups In Linux The Linux System Many Linux distros set up seperate "/home" and "/" (root) partitions. User configuration files are hidden with a "." (period) in the front of the name. Separate partitions

General rules Installing Ruby on Rails in Linux Some general ideas apply throughout the installation. Each Linux distribution has its own idiosyncrasies. The steps that work with Red Hat Linux don't necessarily

Backup Why backup? The choice of goals. Where? The choice of medias. What? The choice of contents. When? The choice of schedules. How? The choice of procedures of operations. Backups 1-1 Backups Unattended

Chapter 8 Types of Utility Programs and Operating Systems Discovering Computers 2012 Your Interactive Guide to the Digital World Objectives Overview Define system software and identify the two types of

Red Hat Certifications: Red Hat Certified System Administrator (RHCSA) Overview Red Hat is pleased to announce a new addition to its line of performance-based certifications Red Hat Certified System Administrator

INF-110 GPFS Installation Overview Plan the installation Before installing any software, it is important to plan the GPFS installation by choosing the hardware, deciding which kind of disk connectivity

VERITAS NetBackup 6.0 for SAP System Administrator s Guide for UNIX and Linux N15265B September 2005 Disclaimer The information contained in this publication is subject to change without notice. VERITAS

Backup of ESXi Virtual Machines using Affa From SME Server Skill level: Advanced The instructions on this page may require deviations from procedure, a good understanding of linux and SME is recommended.