Chapter 10 Archives and Backups.

Slides:



Advertisements
Similar presentations
By Rashid Khan Lesson 6-A Place for Everything: Storage Management.
Advertisements

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.
Backups Rob Limbaugh March 2, Agenda  Explain of a Backup and purpose  Habits  Discuss Types  Risk/Scope  Disasters and Recovery.
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.
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.
Chapter 10 Backups. Computer Center, CS, NCTU 2 Outline  Backup devices and media  Backup philosophy  Unix backup and archiving commands.
Linux+ Guide to Linux Certification Chapter 12 Compression, System Backup, and Software Installation.
Data Integrity: Backups and RAID Track 2 Workshop PacNOG 7 June 29, 2010 Pango Pango, American Samoa (Original slides by Phil Regnauld)
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.
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
Using and Configuring Storage Devices Guide to Operating Systems Third Edition.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
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.
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.
Chapter 7 Installing and Using Windows XP Professional.
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.
 Backup devices and media  Backup philosophy  Unix backup and archiving commands.
Chapter 2: Installing and Upgrading to Windows Server 2008 R2 BAI617.
LAN / WAN Business Proposal. What is a LAN or WAN? A LAN is a Local Area Network it usually connects all computers in one building or several building.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
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,
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 15 Installing and Using Windows XP Professional.
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.
Backup Track SA-E AfNOG workshop May 15, 2009 Cairo, Egypt (Slides by Phil Regnauld)
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.
Software.
Managing Disks and Drives Chapter 13 powered by dj.
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.
McLean HIGHER COMPUTER NETWORKING Lesson 15 (a) Disaster Avoidance Description of disaster avoidance: use of anti-virus software use of fault tolerance.
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.
Data Integrity: Backups and RAID Track SA-E AfCHIX workshop Blantyre, Malawi (Original slides by Phil Regnauld)
Managing Applications, Services, Folders, and Libraries Lesson 4.
IT1001 – Personal Computer Hardware & system Operations Week7- Introduction to backup & restore tools Introduction to user account with access rights.
1 itec 400 Backups George Vaughan Franklin University.
IT-IDT-5 Understand, communicate, and adapt to a digital world. File Management.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
Backups When just having a system isn’t enough. 321 Rule of Thumb 3 generations 2 media 1 off-site at least.
Chapter 19 File System Backup. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To describe how files and directories can be archived.
Memory management. Linux Memory Management Total memory available for processes = real memory + paging space - 1MB. First megabyte of real memory is used.
Instructor: Syed Shuja Hussain Chapter 4: Operating System Basics.
tar: The tape archive program _______________________ Amber Jain IC-2K7-05 _______________________.
Backup and Disaster Dr Stuart Petch CeG IT/IS Manager
Lesson 9: SOFTWARE ICT Fundamentals 2nd Semester SY
File-System Management
Slide Template for Module 4 Data Storage, Backup, and Security
File System Interface CSSE 332 Operating Systems
Basic Guide to Computer Backups
Filesystem Management and Backups
Chapter 10 Backups.
Cairo, Egypt (Slides by Phil Regnauld)
BIF713 Managing Disk Space.
Chapter 7 Installing Program &Backup Tool
Backup your Data © EIT, Author Gay Robertson, 2017.
Backups.
Presentation transcript:

Chapter 10 Archives and Backups

Example Backup System

Why Backup? Types of failures Power failures (software/hardware failure) Natural disasters (fire, flood) Security incidents (theft) Hardware Failures (disk crash) User error (rm -rf) Social issues (stolen data)

Backup Best Practices Centralized backup location Label makers Label everything! Backup intervals User accounts (daily) Software development – Repositories (e.g. SVN) At a minimum weekly Make daily dumps fit on one piece of media Keep media off-site Protect your backups Verify your media

A common backup strategy “Do nothing” It is the most widely used backup strategy. No initial costs. No backup schedule to follow If you lose all your data – “Too bad so sad” “Do nothing’” is the correct backup method for /usr/obj, /usr/src and other directory trees that can be exactly recreated by your system – but if in doubt, BACK IT UP!

Best Practices cont’ Backup data to fit on one piece of media (realistic ?) Keep backups off site? (typical for larger corporations / sensitive media) Protect backups Physical security Verify backup media Generate catalog of backed up media Remember the lifespan of recordable media (e.g. tapes) Worst case mitigation

Backup Media Optical CD-R,DVD-R,Blu-Ray Max capacity 50GB (BD-R DL) Interface SATA USB(2.0, 3.0)

Backup Media cont’ Removable Hard Drives Interface USB Firewire Thunderbolt Ideal for personal use/small systems

Backup Media cont’ Small Tape drives DAT – digital audio tape DDS – digital data storage 160GB

Backup Media cont’ DLT/S-DLT digital linear tape Higher capacities = higher $$$$ Qauntum 600GB

Backup Media cont’ AIT - Advanced Intelligent Tapes – 500GB? VXA – 160GB? LTO – Linear Tape Open HP AJ038A Black 76.8TB Rack mount Fibre Channel Interface LTO Ultrium 4 StorageWorks MSL4048 Tape Library $12K!!!!

My Sample Server

Linux Backup Tools Open Source options: dump tar rsync (Apple’s Time Machine uses this) Amanda Bacula (heavily used, very popular)

DUMP Linux utility Creates backups that can span several tapes Backups/restores any file type Allows for incremental backups Maintains file permissions, ownership, and modification times

DUMP cont Dump does not work across remote file systems Dump only works on one disk partition Dump is based on levels (0 to N) A level N dump backs up all files that have changed since the last dump of level less than N Level 0 puts entire file system on tape The “restore” command will restore files archived by dump

Dump example To make a backup for a directory or file : dump -0f tbackup /home/tavaris This command creates a dump-file called “tbackup” which is the backup of /home/tavaris/data directory. dump-level 0 (specifies full-backup) To make a backup for a directory or file which is already backedup with dump level 0: dump -1f tbackup /home/tavaris/ dump level 1 (specifies incremental backup)

Tar f “filename appears after arguments” z “compress with gzip” tar (1) (Tape Archive) dates back to Version 6 of AT&T UNIX (circa 1975). tar operates in cooperation with the file system; tar writes files and directories to tape or to a file. Usage: tar [options] archive-file-name files-to-archive c -"create archive". v "verbose” print all the filenames added or extracted from archive f “filename appears after arguments” z “compress with gzip” M “multi-volume” x “extract” d “compare” use to verify backups n “newer” for incremental backups

Examples using tar Let's take a backup of /etc where most configuration files reside, and place it in /home/backups: # mkdir /home/backups # tar -cvf /home/backups/etc.tar /etc Remember: The -c option to tar tells it to create an archive, -v specifies verbose output and -f specifies the file to be either written to or read from. You'll see quite a lot of output as tar creates the archive at this point.

Examples using tar Now we check whether our archive has actually been created # cd /home/backups # ls -al This now show us a new file in this directory etc.tar If we now wanted to view the contents of this backup we can run # tar -tvf etc.tar

Examples using tar This will show you the contents of the etc directory as you backed it up. To actually restore and and unpack the contents that were backed up previously: # cd /home/backups # tar -xvf etc.tar

Examples using tar Notice that the restore actually creates a new directory etc where you are located – not in /etc ! This is because tar by default removes the leading '/' from the directories it has backed up in order not to overwrite the original files on your system when you choose to do a restore (a security consideration)

Tar Exercise Backup /etc directory to /home/student/backups/ cd mkdir backups tar –cvf /home/student/backups/etc.tar /etc cd backups View the contents that were backed up tar –tvf etc.tar

Bacula Primer Bacula is an open source set of applications for creating archives of filestysems and restoring file systems from archives Enterprise level software Can backup Unix, Linux, and Windows systems Supports tape libraries, auto-changers, and multiple volumes Creates a hash signature of file system For file verification And more!!!

Backups + Dracula = Bacula It comes by night and sucks the vital essence from your computers!

Bacula Components

https://www. digitalocean https://www.digitalocean.com/community/tutorials/how-to-install-bacula-server-on-centos-7