Offline File Storage. Module 12 Offline File Storage ♦ Introduction Backup is usually done by first collecting all the data in a single archive file,

Slides:



Advertisements
Similar presentations
BACKUPS Whenever a crash occurs we run a backup program. The backup device can be magnetic or a cartridge tape, a floppy diskette or even a disk file.
Advertisements

การใช้ระบบปฏิบัติการ UNIX พื้นฐาน บทที่ 4 File Manipulation วิบูลย์ วราสิทธิชัย นักวิชาการคอมพิวเตอร์ ศูนย์คอมพิวเตอร์ ม. สงขลานครินทร์ เวอร์ชั่น 1 วันที่
Backup & Restore Objectives –to understand Unix backup strategies Contents –why have backups –backup terminology –backup media –backup utilities –issues.
2000 Copyrights, Danielle S. Lahmani UNIX Tools G , Fall 2000 Danielle S. Lahmani Lecture 12.
Lesson 22 – Introduction to Linux Systems Administration.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Linux+ Guide to Linux Certification Chapter 12 Compression, System Backup, and Software Installation.
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
WinZip Basics Chris Comito Marybeth MacLean Jameelah Roberts Matt Smith.
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Utility Programs  A type of system software that is used to solve a particular problem is called utility program. Many operating system provides different.
MCSE Guide to Microsoft Windows 7 Chapter 5 Managing File Systems.
Backups in Linux Ning Zhu Class presentation. Introduction The dump and restore commands are the most common way to create and restore from backups in.
Chapter 11 Compression, System Backup, and Software Installation.
Linux+ Guide to Linux Certification
Ch 61 Using DEL, REN, MOVE, and RD /S. Ch 62 Overview Will continue to work with internal commands that help manage and manipulate files.
Brief introduction to UNIX A. Emerson CINECA, High Performance Systems.
Backup Techniques Objectives –to illustrate practical application of backup utilities Contents –using dd, a direct device access command –manipulating.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Computers Are Your Future Eleventh Edition Chapter 4: System Software Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
CIS 90 - Lesson 14 Lesson Module Status Slides – Properties - Flash cards – No-stress quiz – Web calendar summary – Web book pages – Commands – Lab – done.
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Lesson 11-Locating, Printing, and Archiving User Files.
Chapter 4 Solving Data Backup Challenges Prepared by: Khurram N. Shamsi.
Chapter Fourteen Windows XP Professional Fault Tolerance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Linux Operations and Administration
Linux+ Guide to Linux Certification Chapter Thirteen Compression, System Back-Up, and Software Installation.
Day 7 Installing Software RPM tar, mtools make, ssh.
Managing Software Patches 10/15/ Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files.
CIS 90 - Lesson 15 Lesson Module Status Slides – Properties - Flash cards – No-stress quiz – Web calendar summary – Web book pages – Commands – Lab – done.
Find Find basics. find ~ -name myfile –print find directory criteria This will search the home directory (~) looking for files.
1 Lecture 5 Additional useful commands COP 3353 Introduction to UNIX.
Workbook 5 - Part 2 The Linux Filesystem RH030 Linux Computing Essentials.
MCSE GUIDE TO MICROSOFT WINDOWS 7 Chapter 5 Managing File Systems.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Configuring Data Protection Chapter 12 powered by dj.
CIS 193A – Lesson7 Restoration. CIS 193A – Lesson7 Focus Question Compare the ability of various backup/restore utilities to provide ease of access and.
MCSE Guide to Microsoft Windows Vista Professional Chapter 5 Managing File Systems.
Linux Commands C151 Multi-User Operating Systems.
Understanding Backup and Recovery Methods Lesson 8.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Advanced File Processing.
1 itec 400 Backups George Vaughan Franklin University.
Archive Utilities Learning Objectives: 1. To introduce different archive utilities for file compression with their usage 2. To compare & summarized different.
MCSE GUIDE TO MICROSOFT WINDOWS 7 Chapter 5 Managing File Systems.
Chapter Linux Basics. Acknowledgements This presentation was prepared by – Banyat Settapanich – Bahran Madaen This presentation will be updated later.
Chapter 19 File System Backup. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To describe how files and directories can be archived.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 7 Archiving.
BACKUP AND RESTORE. The main area to be consider when designing a backup strategy Which information should be backed up Which technology should be backed.
Memory management. Linux Memory Management Total memory available for processes = real memory + paging space - 1MB. First megabyte of real memory is used.
Agenda The Linux File System (chapter 4 in text) Linking Files Hard Links / Symbolic Links Disk Storage Checking for Disk Space (df / du) Archiving (Backing.
tar: The tape archive program _______________________ Amber Jain IC-2K7-05 _______________________.
Introduction to Unix – CS 21
Windows XP File Systems
Chapter 7 Installing Program &Backup Tool
The Linux Command Line Chapter 18
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
CIS 155 Lecture 10, Farewell to UNIX
Guarding against loss of data
Module 7 Archiving and Compression
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
Linux Commands LINUX COMMANDS.
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
Chapter 10 Archives and Backups.
Presentation transcript:

Offline File Storage

Module 12 Offline File Storage ♦ Introduction Backup is usually done by first collecting all the data in a single archive file, which can be compressed using the compression tools. ♦ Topic ► Storing files to Media

Offline File Storage Storage files to Media ♦ Backing up of a system is the most major task to be performed by a system administrator. ♦ Computers have the major advantage of storing the data, which makes it significant. ♦ Backups are important because of the possibility of loss of data. ♦ The possibility of data loss can be by: ► File system corruption ► Accidental removal of files ► Hardware failures ► System crash Contd…

Offline File Storage Contd… ♦ Backup Media ► The following are some of the methods of back up through media floppy disks Tapes removable hard disks rewritable CD-ROMs ♦ Backup tools ► tar ► dd ► Dump ► cpio Storage files to Media

Offline File Storage Contd… Storage files to Media ♦ Backup using tar command An archiving program designed to store and extract files from an archive file known as a tarfile. The tar is the most commonly used command for the backup. ► tar options tar –cvf (creating the tar file) tar –tvf (listing the contents of tar file) tar –xvf (extracting the contents of tar file) – where, c – create t – list x – extract v – verbose f – file

Offline File Storage Contd… ♦ Backup using dd command dd copies a file from source to destination. It copies an input file (if) file and sends the result to the output file (of) which converts and formats according to the options. ► Syntax # dd if= of= ► Example dd if=bootdisk.img of=/dev/fd0 Storage files to Media

Offline File Storage Contd… ♦ Backup using dump/restore command ► dump and restore commands are the two different programs that are included in the dump package. ► These files are copied to the given disk, tape or other storage medium for protection. ► Syntax dump - - Storage files to Media

Offline File Storage Contd… Storage files to Media ♦ Example: dump -0 –f /home_dumps/mydumps /home ► where, -0 - dump level (full backup) -f - write a backup to file

Offline File Storage Contd… Storage files to Media ♦ Backup using restore command ► The restore command is used to view and restore the dump file. ► Syntax: # restore - ► Example: restore –if mydumps where, -i is interactive restoration -f is read backup from file

Offline File Storage Contd… ♦ Backup using cpio command ► The cpio command is a tool for creating and extracting archives, or copying files from one place to another, which contains other files and information about them, such as their file name, owner, timestamps, and access permissions. ► It handles a number of cpio formats as well as reading and writing tar files. The archive can be another file on the disk, a magnetic tape, or a pipe. Storage files to Media

Offline File Storage Contd… ♦ cpio has three operating modes. ► copy-out mode, cpio copies files into an archive. ► copy-in mode, cpio copies files out of an archive or lists the archive contents. ► copy-pass mode, cpio copies files from one directory tree to another, combining the copy-out and copy-in steps without actually using an archive. Storage files to Media

Offline File Storage Contd… ♦ Syntax for creating the cpio file ► find (source file name) | cpio –(options) > (target file name) ► Example: find file1 | cpio -o > file1_back.cpio ► Syntax for extracting the cpio file cat | cpio –(options) ► Example: cat file1_back.cpio | cpio –idvm where, d – make directories i – extract m – modification time o – create v – verbose Storage files to Media

Offline File Storage Contd… Storage files to Media ♦ Compression tools ► Zip zip is a compression and file packaging utility. The program is useful for packaging a set of files for distribution, archiving files and saving disk space by temporarily compressing unused files or directories. The zip program puts one or more compressed files into a single zip archive, along with information about the files. An entire directory structure can be packed into a zip archive with a single command. ► Syntax zip ► Example: zip install install.log

Offline File Storage Contd… ♦ unzip ► unzip will list, test, or extract files from a zip archive, commonly found on MS-DOS systems. The default behavior (with no options) is to extract into the current directory and subdirectories all files from the specified zip archive. ► Syntax unzip ► Example: unzip install.zip Storage files to Media

Offline File Storage Contd… Storage files to Media ♦ Gzip By default, gzip keeps the original file name and timestamp in the compressed file. These are used when decompressing the file with the –N option. The main advantage of gzip over compress is it has a better compression capacity than other compression tools. ► Syntax gzip ► Example gzip install.log

Offline File Storage Contd… ♦ Gunzip gunzip decompress the files created by gzip. It takes a list of files on its command line and replaces each file ending with.gz, -gz,.z, -z, _z or.Z and which begins with the correct number with an uncompressed file without the original extension. gunzip also recognizes the special extensions.tgz and.taz as shortcuts for.tar.gz and.tar.Z respectively. ♦ Syntax ► gunzip ♦ Example: ► gunzip install.log.gz Storage files to Media

Offline File Storage Contd… Storage files to Media ♦ Bzip2 bzip2 is a block-sorting file compressor. It expects a list of file names to accompany the command-line tools. Each file is replaced by a compressed version of itself, with the name ‘original_name.bz2’. Each compressed file has the same modification date, permissions and when possible ownership as the corresponding original, so that these properties can be correctly restored at decompression time. ► Syntax bzip2 ► Example: bzip2 install.log

Offline File Storage Storage files to Media ♦ Bunzip2 bunzip2 (or bzip2 -d) decompresses all specified files. bzip2 attempts to guess the filename for the decompressed file from that of the compressed file. If the file does not end in one of the recognized endings,.bz2,.bz,.tbz2 or.tbz, bzip2 gives an error message that it cannot guess the name of the original file, and uses the original name with.out. ► Syntax bunzip ► Example: bunzip install.log.bz2

Offline File Storage ♦ Backup any desired directory using tar command ♦ Compress the file mydata from the data directory and uncompress into a new directory by name backup using zip and unzip commands ♦ Backup the /tmp directory into a new directory by name tmp_backup using dump command Lab Exercise