CIS 240 Introduction to UNIX Instructor: Sue Sampson.

Slides:



Advertisements
Similar presentations
Chapter 4 Storing Information in a Computer Peter Nortons Introduction to Computers.
Advertisements

Va-scanCopyright 2002, Marchany Unit 8 – Solaris File Systems Randy Marchany VA Tech Computing Center.
XP Managing Your Files 1. XP Managing Your Files 2 Objectives Develop file management strategies Explore files and folders Create, name, copy, move, and.
Backing Up a Hard Disk CGS2564. Why Backup Programs? Faster Optimized to copy files Can specify only files that have changed Safer Can verify backed up.
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.
การใช้ระบบปฏิบัติการ UNIX พื้นฐาน บทที่ 4 File Manipulation วิบูลย์ วราสิทธิชัย นักวิชาการคอมพิวเตอร์ ศูนย์คอมพิวเตอร์ ม. สงขลานครินทร์ เวอร์ชั่น 1 วันที่
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.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Managing Your Files. Objectives Develop file management strategies Explore files and folders Create, name, copy, move, and delete folders Name, copy,
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Linux+ Guide to Linux Certification Chapter 12 Compression, System Backup, and Software Installation.
Intermediate GNVQ ICT Backing Storage Backing storage is used to store programs and data when they are not being used or when a computer is switched off.
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
®® Microsoft Windows 7 for Power Users Tutorial 10 Backing Up and Restoring Files.
WinZip Basics Chris Comito Marybeth MacLean Jameelah Roberts Matt Smith.
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
Storage Devices and Media
Class Agenda – 06/11/ Present computer data organization Explore files, folders, and libraries in Windows 7 Explain logistics of course including.
Procedures for Backup and Recovery Section 14. Key points and questions What data should be backed up and how often? What do we mean by full backup, incremental.
Chapter 4: Operating Systems and File Management 1 Operating Systems and File Management Chapter 4.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Backup Strategy. Backup strategy Backup copy is a second copy saved to another location, usually on a backup device e.g. USB stick.Backup copy is a second.
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.
Chapter 11 Compression, System Backup, and Software Installation.
Linux+ Guide to Linux Certification
Backup Techniques Objectives –to illustrate practical application of backup utilities Contents –using dd, a direct device access command –manipulating.
Offline File Storage. Module 12 Offline File Storage ♦ Introduction Backup is usually done by first collecting all the data in a single archive file,
CIS 90 - Lesson 14 Lesson Module Status Slides – Properties - Flash cards – No-stress quiz – Web calendar summary – Web book pages – Commands – Lab – done.
Lesson 11-Locating, Printing, and Archiving User Files.
Chapter 4 Solving Data Backup Challenges Prepared by: Khurram N. Shamsi.
Backup Track SA-E AfNOG workshop May 15, 2009 Cairo, Egypt (Slides by Phil Regnauld)
Linux Operations and Administration
Module 12: Managing Disaster Recovery. Overview Preparing for Disaster Recovery Backing Up Data Scheduling Backup Jobs Restoring Data Configuring Shadow.
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.
1 Lecture 5 Additional useful commands COP 3353 Introduction to UNIX.
Workbook 5 - Part 2 The Linux Filesystem RH030 Linux Computing Essentials.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
ITEC 1001 Managing Your Files. Tutorial Objectives Develop file management strategies Explore files and folders Create, name, copy, move, and delete folders.
Backups CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
CIS 193A – Lesson7 Restoration. CIS 193A – Lesson7 Focus Question Compare the ability of various backup/restore utilities to provide ease of access and.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
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.
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 itec 400 Backups George Vaughan Franklin University.
IT-IDT-5 Understand, communicate, and adapt to a digital world. File Management.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Feb 3 rd, 2009 Essential Unix Commands …the second half.
Importance of Routine File System Backups To prevent loss data due to: Accidental deletion of files Hardware failures Problems with re-installation or.
Package Administration 3/14/ Software package administration adds software to systems and removes software from systems Sun and its third-party.
Chapter 19 File System Backup. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To describe how files and directories can be archived.
4-1 Copyright Prentice-Hall, Inc Disks & Tape Backup Units CHAPTER4.
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 _______________________.
Class Agenda – 09/07/2011 Present computer data organization
Filesystem Management and Backups
AS ICT Module 2 Objectives: Security of Data
Chapter 7 Installing Program &Backup Tool
Managing Your Files.
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
IT-IDT-5 Understand, communicate, and adapt to a digital world.
5 Backing Storage Backing storage is used to store programs and data when they are not being used or when a computer is switched off. When programs and.
Lecture 5 Additional useful commands COP 3353 Introduction to UNIX 1.
Chapter 10 Archives and Backups.
Presentation transcript:

CIS 240 Introduction to UNIX Instructor: Sue Sampson

CIS240 – Backup and Restore Planning for Disasters and Everyday Needs Backup Media Backing Up and Restoring Files and Filesystems Compressing Archived Files

CIS240 – Backup and Restore Planning for Disasters and Everyday Needs Factors to consider Backup Strategies Storage Considerations

CIS240 – Backup and Restore Factors to consider What files need to be backed up? Where are these files? Who will back up the files? Where, when, and under what conditions should backups be performed? How often do these files change? How quickly does an important missing or damaged file need to be restored? Where will the data be restored?

CIS240 – Backup and Restore Backup Strategies Full Backup  All files are backed up Incremental Backup  Files changed since the last backup are backed up Unattended Backups  Backups are automatically started at a scheduled time

CIS240 – Backup and Restore Storage Considerations Know where things are Make routine restorations easy Write-protect backup media Environmental considerations Handle media properly Take security into account

CIS240 – Backup and Restore Backup Media Magnetic tape Floppy disks Removable disks Floptical and Magneto Optical Disks Write-once CD-ROMS Jukeboxes, Stackloaders, and Similar Devices Hard disks

CIS240 – Backup and Restore Backing Up and Restoring Files and Filesystems Tape archive (tar) Format tar

CIS240 – Backup and Restore tar c Create an archive file and add files to it f Name of archive file r Record files at the end of the archive (append) t List the contents of an archive file u Update by adding new or changed files v Verbose – list file names as they are processed x Extract files from archive (restore)

CIS240 – Backup and Restore tar Can be device, such as tape backup, recordable/rewritable CD ROM, or floppy Can be a path name on an existing mounted device (hard drive, floppy, etc)

CIS240 – Backup and Restore tar Relative or absolute path name of files Must be specified for backup (tar responds with “Cowardly refusing to create empty tape archive…” error message if you don’t) A period indicates all files at the current location are to be backed up. Default for restore operation is all files in the archive.

CIS240 – Backup and Restore Backup Example 1 tar cvf archive1.tar lab8/ Backs up all files in the /lab8a directory to an archive file called archive1.tar. Provides a complete list of backup operations.

CIS240 – Backup and Restore Backup Example 2 tar cvf archive2.tar *.doc Backs up all files in the current directory that have an extension of.doc to an archive file called archive2.tar. Provides a complete list of backup operations.

CIS240 – Backup and Restore View Contents of.tar File tar tvf archive1.tar Prints a list of all files and directories in the archive.

CIS240 – Backup and Restore Restore Example 1) Copy or move the archive file to the directory you want to restore to, then execute tar from that directory… cp archive1.tar ~/backups tar xvf archive1.tar 2) Provide complete path for archive… tar xvf ~/testtar/archive1.tar Restores all files and directories in archive1.tar to the current directory

CIS240 – Backup and Restore Tips on Using tar Case is important Spaces are important Using an incorrect option will cause unpredictable results Leaving out information will cause tar to hang will break you out of tar

CIS240 – Backup and Restore Compression Example 1 tar czvf myzip.tar.gz *.doc Compresses and packages all files in the current directory with an extension of.doc into one file named myzip.tar.gz.

CIS240 – Backup and Restore Compression Example 2 gzip mydoc.doc Compresses and replaces mydoc.doc file with compressed version, mydoc.doc.gz.

CIS240 – Backup and Restore Decompression Examples gunzip mydoc.doc.gz Decompresses and replaces file, mydoc.doc.gz with uncompressed version, mydoc.doc If you used tar and compress together, decompress the package, then unpack it… gunzip myzip.tar.gz tar xvf myzip.tar