CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC1 Chapter 11, Backups Honglin Su CSEE, UMBC

Slides:



Advertisements
Similar presentations
Chapter 6 File Systems 6.1 Files 6.2 Directories
Advertisements

Tasks in Setting Up a Hard Disk
Tertiary Storage Devices
Silberschatz and Galvin Operating System Concepts Module 14: Tertiary-Storage Structure Tertiary Storage Devices Operating System Issues Performance.
Chapter 20 Oracle Secure Backup.
Devices and Drivers (Chapter 7) Khattab Alhabashi UNIX System Administration.
Basic Unix system administration
Backing Up Your Computer Hard Drive Lou Koch June 27, 2006.
11 BACKING UP AND RESTORING DATA Chapter 4. Chapter 4: BACKING UP AND RESTORING DATA2 CHAPTER OVERVIEW Describe the various types of hardware used to.
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.
Operating Systems File Systems (in a Day) Ch
Chapter 12 - Backup and Disaster Recovery1 Ch. 12 – Backups and Disaster Recovery MIS 431 – Created Spring 2006.
CS 333 Introduction to Operating Systems Class 18 - File System Performance Jonathan Walpole Computer Science Portland State University.
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.
Backups1-1 Backup  Why backup? m The choice of goals.  Where? m The choice of medias.  What? m The choice of contents.  When? m The choice of schedules.
Backup and Recovery Part 1.
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
Security and Backup Avoid disasters – have a good backup policy Avoid disasters – have a tight security scheme in place UK law dictates the board of directors.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
1 Objectives Discuss the Windows Printer Model and how it is implemented in Windows Server 2008 Install the Print Services components of Windows Server.
1 Chapter Overview Backing Up Your Network Backing Up and Restoring Active Directory.
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.
11 INFO 321 Server Technologies II Backup Applications.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Linux+ Guide to Linux Certification
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.
Offline File Storage. Module 12 Offline File Storage ♦ Introduction Backup is usually done by first collecting all the data in a single archive file,
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Chapter 11 Backups Unix System Administration. Backup. Why? Because We Like You. w Why backup at all? Restore from data loss Disaster recovery Archival.
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 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Backups Ching-li Peng CMSC691X Date: June 11, 2002.
Linux Operations and Administration
Maintaining File Services. Shadow Copies of Shared Folders Automatically retains copies of files on a server from specific points in time Prevents administrators.
1 Maintain System Integrity Maintain Equipment and Consumables ICAS2017B_ICAU2007B Using Computer Operating system ICAU2231B Caring for Technology Backup.
Linux+ Guide to Linux Certification Chapter Thirteen Compression, System Back-Up, and Software Installation.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
Backups CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
XP Practical PC, 3e Chapter 6 1 Protecting Your Files.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 11: File System Implementation.
Cosc 4750 Backups Why Backup? In case of failure In case of loss of files –User and system files Because you will regret it, if you don’t. –DUMB = Disasters.
1 Backups Part of a Systems Administrators job is maintaining the integrity of the system. This does not mean that she is expected to prevent anything.
CS 346 – Chapter 11 File system –Files –Access –Directories –Mounting –Sharing –Protection.
System Administration – Part 2. Devices in UNIX are files: A device can be accessed with different file names All device files are stored in /dev or its.
1 3 Computing System Fundamentals 3.6 Errors Prevention and Recovery.
IT1001 – Personal Computer Hardware & system Operations Week7- Introduction to backup & restore tools Introduction to user account with access rights.
The Unix File system (UFS) Presented by: Gurpreet Singh Assistant Professor Department of School of Computing and Engineering Galgotias University.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Importance of Routine File System Backups To prevent loss data due to: Accidental deletion of files Hardware failures Problems with re-installation or.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
Memory management. Linux Memory Management Total memory available for processes = real memory + paging space - 1MB. First megabyte of real memory is used.
tar: The tape archive program _______________________ Amber Jain IC-2K7-05 _______________________.
File-System Management
Jonathan Walpole Computer Science Portland State University
Filesystem Management and Backups
Chapter 10 Backups.
O.S Lecture 14 File Management.
Chapter 2: Operating-System Structures
Backups Chapter 10.
Chapter 2: Operating-System Structures
Chapter 10 Archives and Backups.
Presentation transcript:

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC1 Chapter 11, Backups Honglin Su CSEE, UMBC

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC2 Agenda Introduction Backup Devices and Media Incremental Backup Backup Rules Restoring from Dumps Dumping and Restoring from Upgrades Other Archiving Programs Summary

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC3 Introduction Information stored on computers is worth more than the computers themselves –Consider your accounts stored in Banks Hundreds of ways to lose data. –Accidental file removal, External/Internal failures Backup - The most efficient and convenient way to protect your data Backup must be done carefully and on a strict schedule

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC4 Backup Devices and Media

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC5 Backup Devices and Media Most media use magnetic particles to store their data, these media are subject to damage by electrical and magnetic fields. New Trends –Larger capacity devices, such as Tape libraries, using robot; others, e.g. Jukeboxes and Stackers –Higher speed: 12 MB/s

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC6 Incremental Backup dump: builds a list of files that have been modified since a previous dump, then packs those files into a single large file to archive to an external device. –Backups can span multiple tapes –Files of any type (even devices) can be backed up and restored –Permission, ownerships, and modify times can be restored –Files with holes are handled correctly –Backups can be performed incrementally

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC7 Incremental Backup Limitation of dump: –Every filesystem must be dumped individually If you have a disk that is partitioned, you must dump each section of the disk separately –The other limitation is that only filesystems on the local machine can be dumped You can not dump an NFS filesystem, however, rdump can dump a local filesystem to a remote tape drive

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC8 Incremental Backup Maintenance Commands ufsdump(1M) NAME ufsdump - incremental file system dump SYNOPSIS /usr/sbin/ufsdump [options] [arguments] files_to_dump DESCRIPTION ufsdump backs up all files specified by files_to_dump (nor- mally either a whole file system or files within a file sys- tem changed after a certain date) to magnetic tape, diskette, or disk file. When running ufsdump, the file sys- tem must be inactive; otherwise, the output of ufsdump may be inconsistent and restoring files correctly may be impos- sible. A file system is inactive when it is unmouned or the system is in single user mode. A file system is not con- sidered inactive if one tree of the file system is quiescent while another tree has files or directories being modified. SolarisLinux DUMP(8) UNIX System Manager's Manual DUMP(8) NAME dump - filesystem backup SYNOPSIS dump [ BbhfusTdWn [argument...]] filesystem dump [ BbhfusTdWn [argument...]] directory DESCRIPTION Dump examines files on a filesystem and determines which files need to be backed up. These files are copied to the given disk, tape or other stor- age medium for safe keeping (see the f option below for doing remote backups). A dump that is larger than the output medium is broken into multiple volumes. On most media the size is determined by writing until an end-of-media indication is returned. On media that cannot reliably return an end-of-media indication (such as some cartridge tape drives) each volume is of a fixed size; the actual size is determined by the tape size and density and/or block count options below. By default, the same output file name is used for each volume after prompting the operator to change media.

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC9 Incremental Backup Backup level 0 ~ 9 –A level zero backup places the entire filesystem on the tape –A level N dump backs up all files that have changed since the last dump level less than N. –To restore files from several sets of backup tapes to reset a filesystem to its exact state during the last backup. dump does not care about the length of filename.

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC10 Incremental Backup Dump sequences and schedule –The schedule that is right for you depends on The activity of your filesystems The capacity of your dump device The amount of redundance you want The number of tapes you want to buy

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC11 Backup Rules Perform all dumps from one machine –using rdump, there is a performance penalty, while the ease of administration makes it worthwhile. Label your tapes: exalabel Pick a reasonable backup interval –The more often backups are done, the smaller the amount of data that can be lost in a crash Choose filesystems carefully

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC12 Backup Rules Make daily dumps fit on one tape Make filesystems samller than your dump device Keep tapes off-site Limit Activity during dumps Check your tapes –Verify that the tape contains the expected files Prepare for the worst

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC13 Restoring from Dumps Restoring individual files –restore x filename –use rrestore to extract files from rdump. –If multiple files on a single tape, use mt to position the tape at the correct dump file before running restore Interactive restore –If your version of restore supports the i option. Restore entire filesystems –restore r

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC14 Dumping and Restoring for Upgrades When you perform an OS upgrade, all filesystems must be backed up with a level zero dump. Be sure to back up and restore any system-specific files that are in / or /usr, such as /etc/passwd, /usr/local, etc. Your should do a complete set of level zero dumps immediately after an upgrade.

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC15 Other Archiving Programs tar: Package Files cpio: ATT-ish Archiving, copy file archives in and out, similar to tar dd: Twiddle Bits –% dd if=/dev/rmt0 of=/dev/rmt1 cbs=16b volcopy: Duplicate Filesystems

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC16 Other Archiving Programs tar User Commands tar(1) NAME tar - create tape archives and add or extract files SYNOPSIS tar c [bBefFhiklnopPqvwX [ 0-7 ]] [ block ] [ tarfile ] [ exclude-file ] { -I include-file | -C directory file | file }... tar r [ bBefFhiklnqvw [ 0-7 ]] [ block ] { -I include-file | -C directory file | file }... tar t [ BefFhiklnqvX [ 0-7 ]] [ tarfile ] [ exclude-file ] { -I include-file | file }... tar u [ bBefFhiklnqvw [ 0-7 ]] [ block ] [ tarfile ] file... tar x [ BefFhiklmnopqvwX [ 0-7 ]] [ tarfile ] [ exclude-file ] [ file... ] actaeon.cs.umbc.edu[130] tar cvf tmp.tar tmp a tmp/ 0K a tmp/yt.hm 12K a tmp/review1.txt 2K a tmp/ 2K a tmp/Map.ppt 31K a tmp/bob.c 1K actaeon.cs.umbc.edu[132] tar xvf tmp.tar x tmp, 0 bytes, 0 tape blocks x tmp/yt.hm, bytes, 23 tape blocks x tmp/review1.txt, 1163 bytes, 3 tape blocks x tmp/ , 1201 bytes, 3 tape blocks x tmp/Map.ppt, bytes, 61 tape blocks x tmp/bob.c, 61 bytes, 1 tape blocks

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC17 Using multiple files on a single tape mt command –rew - rewind the tape to the beginning –offl - put the tape off-line –status - show the status of the tape drive –fsf [count] - fast-forwards the tape –bsf [count] - backspace count files actaeon.cs.umbc.edu[137] mt usage: mt [ -f device ] command [ count ]

CMSC 691X, Summer 1999 Honglin Su, CSEE UMBC18 Summary Related chapters –Chapter 4, The filesystem –Chapter 7, Devices and drivers –Chapter 9, Adding a disk –Chapter 10, Periodic Processes –Chapter 17, NFS For more information – – Q & A Thank you!