Backing Up Your System With rsnapshot

Slides:



Advertisements
Similar presentations
Chapter 20 Oracle Secure Backup.
Advertisements

A new look at the Linux Operating System
SSH Operation and Techniques - © William Stearns 1 SSH Operation and Techniques The Swiss Army Knife of encryption tools…
Backups In Linux. The Linux System Many Linux distros set up seperate "/home" and "/" (root) partitions. User configuration files are hidden with a "."
Disk-to-Disk Backups with Rsync Robert Tuck
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
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.
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
Module 8 Implementing Backup and Recovery. Module Overview Planning Backup and Recovery Backing Up Exchange Server 2010 Restoring Exchange Server 2010.
Online Data Backup Services from
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Firewalls, Perimeter Protection, and VPNs - SANS © SSH Operation The Swiss Army Knife of encryption tools…
A crash course in njit’s Afs
Space Science and Engineering Center University of Wisconsin-Madison Virtual Machines: A method for distributing DB processing software Liam Gumley.
Chapter 11 Compression, System Backup, and Software Installation.
Linux+ Guide to Linux Certification
Yi Shen Mar 18 th, Backup workshop Stanford Exploration Project.
Hands-On Virtual Computing
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
Rational ClearCase Introduction for PeopleSoft DSI UNIX Administrators.
| nectar.org.au NECTAR TRAINING Module 5 The Research Cloud Lifecycle.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
1 CSE 390 Lecture 9 Do anything from anywhere – tools to free your choice of OS slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson.
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
Linux Operations and Administration
PINE. What is PINE? PINE is a light weight yet very powerful open source console based client developed by the University of Washington. It has.
BIF713 Introduction to Linux. Agenda Getting Started: Using Linux Unix and Linux - Structure / Features Elements of the Linux Philosophy Linux Command.
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring.
Introduction to Linux Server Setup Jonathan Hood CSE 4000 Practical Issues in Software Engineering.
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.
Backup and Disaster Dr Stuart Petch CeG IT/IS Manager
Virtualised DICE image - scoping Research and Teaching Unit Work in progress.
PC Support & Repair Chapter 5 Operating Systems Part 2.
Packaging Software for Debian Roberto C. Sánchez Ohio Linuxfest Saturday, September 29, 2007.
Back it up – Don't be a fool!
CompTIA Server+ Certification (Exam SK0-004)
Using Crontab with Ubuntu
Do anything from anywhere – tools to free your choice of OS
Chapter 9 Managing Software
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Computing Clusters, Grids and Clouds Globus data service
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
Chapter 9 Periodic Processes
StratusLab Tutorial (Bordeaux, France)
BIF713 Managing Disk Space.
Technology Envioronment
Using Clam Anti-Virus with Ubuntu
Lab 1 introduction, debrief
ECE544: Software Assignment 3
How to… Use Crontab for SFX
Do anything from anywhere – tools to free your choice of OS
Solutions: Backup & Restore
LoboCloud.unm.edu June 9 – 10, 2016 Presented by
Operational Dataset Update Functionality Included in the NCAR Research Data Archive Management System Zaihua Ji Doug Schuster Steven Worley Computational.
Do anything from anywhere – tools to free your choice of OS
IS3440 Linux Security Unit 8 Software Management
OPS235 PACKAGE MANAGEMENT
Do anything from anywhere – tools to free your choice of OS
Do anything from anywhere – tools to free your choice of OS
Do anything from anywhere – tools to free your choice of OS
Do anything from anywhere – tools to free your choice of OS
SUSE Linux Enterprise Desktop Administration
Periodic Processes Chapter 9.
lctseng / Liang-Chi Tseng
Azure Container Service
PerformanceBridge Application Suite and Practice 2.0 IT Specifications
Presentation transcript:

Backing Up Your System With rsnapshot Roberto C. Sánchez Dayton Linux Users Group InstallFest Saturday, March 1, 2014

Backing Up Your System With Overview About the Presenter About rsnapshot and Alternatives Installing rsnapshot Options in rsnapshot Configuring rsnapshot Other Operating Systems (e.g., Windows, Mac) Restoring from rsnapshot Backing Up Your System With rsnapshot

Backing Up Your System With About the Presenter I am a software engineer and IT consultant I run my own one-man consulting firm I have been using Linux since 2002 I have been a Debian Developer since 2007 I am online here: http://people.connexer.com/~roberto http://www.connexer.com http://www.linkedin.com/in/robertocsanchez/ Backing Up Your System With rsnapshot

Backing Up Your System With About rsnapshot Makes use of rsync, ssh, and hard links Very space and bandwidth efficient Creates hourly, daily, weekly, etc., snapshots From the manual page: “rsnapshot is a filesystem snapshot utility. It can take incremental snapshots of local and remote filesystems for any number of machines.” Can run via command line or via cron (command scheduler daemon) Backing Up Your System With rsnapshot

Backing Up Your System With Alternatives There are other valid approaches: Cloud-based solutions Manual backups Other tools/utilities similar to rsnapshot “Roll your own” Before switching to rsnapshot, I used a custom solution based on an old HOWTO: “Easy Automated Snapshot-Style Backups with Rsync” (last updated 10 years ago) Backing Up Your System With rsnapshot

Backing Up Your System With Installing rsnapshot On Debian (and derivatives): sudo apt-get install rsnapshot On Red Hat (and derivatives): Download RPM (http://www.rsnapshot.org) rpm -i rsnapshot-<version>.noarch.rpm May be available from third-party repositories Manually: Download tarball (http://www.rsnapshot.org) ./configure && make && make install Backing Up Your System With rsnapshot

Backing Up Your System With Options in rsnapshot Read the documentation, there is lots of it and it is very helpful Backup intervals are set in cron file: Debian sample defaults are hourly every 4 hours, daily at 3:30 AM, weekly on the first day of the week at 3:00 AM, monthly on the first day of the month at 2:30 AM Other distributions may have different defaults Command line options for manual invocation (e.g., backup laptop or for removable media) Backing Up Your System With rsnapshot

Configuring rsnapshot snapshot_root: where snapshots are kept no_create_root: used when you backup to removable media retain: how many snapshots of each interval (i.e., hourly, daily, etc.) to keep around include: specific files/directories to backup exclude: specific files/directories to ignore backup: directories/hosts to backup Backing Up Your System With rsnapshot

Configuring rsnapshot Edit cron file to set desired intervals To backup local directories, that is sufficient To backup remote hosts, ssh keys are needed Create with ssh-keygen Keys should always have a strong passphrase For unattended backup, passphrase is a problem Key must be setup to allow rsnapshot access as the correct user (e.g., root) Backing Up Your System With rsnapshot

Other Operating Systems Mac OS X is easy to setup Already comes with ssh and rsync Treat like any other Linux or Unix Windows requires more work Must install an ssh server and rsync Can obtain necessary environment via installation of Cygwin Backing Up Your System With rsnapshot

Restoring from rsnapshot rsnapshot is a backup solution, not a backup and restore solution “Bare metal” restore can be lots of work Single or multiple file restore is trivial To restore, navigate to the snapshot_root directory and grab the file(s) you want Backing Up Your System With rsnapshot

Backing Up Your System With Summary rsnapshot is a versatile backup system Many configuration options are available Alternatives exist, depending on your objective Focuses on the backup, not on the restore Presentation slides available online: http://people.connexer.com/~roberto Backing Up Your System With rsnapshot