A SHORT INTRODUCTION TO DUPLICITY WITH CLOUD OBJECT STORAGE. Version 1.12 2014-07-01



Similar documents
Cassandra Installation over Ubuntu 1. Installing VMware player:

A SHORT INTRODUCTION TO BITNAMI WITH CLOUD & HEAT. Version

Using a login script for deployment of Kaspersky Network Agent to Mac OS X clients

Configure Cisco Emergency Responder Disaster Recovery System

INASP: Effective Network Management Workshops

14. CUCM 8 - free sftp solution for backup on ubuntu server

Step One: Installing Rsnapshot and Configuring SSH Keys

Backing Up Your System With rsnapshot

Extending Remote Desktop for Large Installations. Distributed Package Installs

CPE111 COMPUTER EXPLORATION

A SHORT INTRODUCTION TO CYBERDUCK WITH CLOUD OBJECT STORAGE. Version

Backing Up TestTrack Native Project Databases

Setting up VMware Server v1 for 2X VirtualDesktopServer Manual

1. Product Information

GETTING STARTED WITH FLEXI-CLOUD

Attix5 Pro Server Edition

1. Scope of Service. 1.1 About Boxcryptor Classic

CommandCenter Secure Gateway

You may have been given a download link on your trial software . Use this link to download the software.

RecoveryVault Express Client User Manual

Online Backup Client User Manual

Online Backup Linux Client User Manual

Online Backup Client User Manual

Technical Support Set-up Procedure

Installation Guidelines (MySQL database & Archivists Toolkit client)

Online Backup Client User Manual Linux

Using Network Attached Storage with Linux. by Andy Pepperdine

OpenGeo Suite for Linux Release 3.0

FireBLAST Marketing Solution v2

uh6 efolder BDR Guide for Veeam Page 1 of 36

MATLAB on EC2 Instructions Guide

Online Backup Client User Manual

Disaster Recovery System Administration Guide for Cisco Unified Contact Center Express Release 8.5(1)

HP SDN VM and Ubuntu Setup

Configure Backup Server for Cisco Unified Communications Manager

Disaster Recovery System Administration Guide for Cisco Unified Contact Center Express Release 8.0(2)

Cloud Backup Express

Avalanche Remote Control User Guide. Version 4.1.3

Disaster Recovery System Administration Guide for Cisco Unified Contact Center Express Release 8.5(1)

SOA Software API Gateway Appliance 7.1.x Administration Guide

Creating a DUO MFA Service in AWS

Upgrading MySQL from 32-bit to 64-bit

Tips for getting started! with! Virtual Data Center!

CTERA Agent for Linux

Apache Hadoop 2.0 Installation and Single Node Cluster Configuration on Ubuntu A guide to install and setup Single-Node Apache Hadoop 2.

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

ECT362 Installing Linux Virtual Machine in KL322

INSTALL ZENTYAL SERVER

Desktop : Ubuntu Desktop, Ubuntu Desktop Server : RedHat EL 5, RedHat EL 6, Ubuntu Server, Ubuntu Server, CentOS 5, CentOS 6

Anchor End-User Guide

If you are planning to work from home or your laptop, there are several things you need to have access to:

Cloud Services for Backup Exec. Planning and Deployment Guide

Upgrading VMware Identity Manager Connector

Configuration Guide. Remote Backups How-To Guide. Overview

Deploying a Virtual Machine (Instance) using a Template via CloudStack UI in v4.5.x (procedure valid until Oct 2015)

VPN: Virtual Private Network Setup Instructions

SUREedge Software Appliance (vmware) Installation Guide

BackupAgent Management Console User Manual

ULTEO OPEN VIRTUAL DESKTOP V4.0

Local File Sharing in Linux

Ulteo Open Virtual Desktop Installation

How To Set Up Dataprotect

See the installation page

How to Backup XenServer VM with VirtualIQ

FileMaker Server 13. FileMaker Server Help

CS197U: A Hands on Introduction to Unix

How to share folders on Windows 7 and Windows 8

Create a virtual machine at your assigned virtual server. Use the following specs

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

JAMF Software Server Installation Guide for Linux. Version 8.6

NovaBACKUP xsp Version 15.0 Upgrade Guide

EMC Data Protection Search

MacroLan Azure cloud tutorial.

How to Restore a Linux Server Using Bare Metal Restore

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

Intronis RMM Deployment Kit

VPN Web Portal Usage Guide

How To Install Openstack On Ubuntu (Amd64)

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

How to Tunnel Remote Desktop using SSH (Cygwin) for Windows XP (SP2)

Verax Service Desk Installation Guide for UNIX and Windows

AzMERIT Secure Browser Installation Manual For Technology Coordinators

Laboration 3 - Administration

Browser Client 2.0 Admin Guide

User guide. Business

FileMaker Server 14. FileMaker Server Help

Maintaining the Content Server

Recommended File System Ownership and Privileges

Beyond Windows: Using the Linux Servers and the Grid

ALERT installation setup

WebCT 3.7 Campus Edition System Administrator s Guide. Technical Communications

SOS SO S O n O lin n e lin e Bac Ba kup cku ck p u USER MANUAL

Table of Contents. Online backup Manager User s Guide

Transferring AIS to a different computer

Installation Guide. (You can get these files from

Transcription:

A SHORT INTRODUCTION TO DUPLICITY WITH CLOUD OBJECT STORAGE Version 1.12 2014-07-01

PAGE _ 2 TABLE OF CONTENTS 1. Introduction....Page 03 2. System Configuration....Page 04 3. Create Backup Script....Page 05 4. Setup Periodic Backups....Page 07 5. Restore Files....Page 08

PAGE _ 3 1. INTRODUCTION Welcome to Cloud&Heat! The purpose of this document is to show you how to use the Duplicity software in combination with Cloud Object Storage. Duplicity is free software available under the GNU General Public License (GPL) and provides encrypted remote backups of files and directories. We will provide you with a backup script and walk you though how to set it up to perform a backup on a regular basis. Duplicity works best on an all Unix-like system like Linux and MacOSX, but can also be used to backup Windows systems under Cygwin. Duplicity supports deleted files, Unix permissions, directories and symbolic links. The steps we will go though are the following: 1) System configuration (Section 2). 2) Create backup script (Section 3). 3) Setup periodic backups (Section 4). In Section 5, we also show how to restore the files that were backed up. The backup script runs on all systems where python-2, duplicity-0.6.22 and python-swift client are installed. Instructions on how to make your system meet these requirements are included in Section 2. The instructions in this document have been tested with Ubuntu 12.04 and 13.10 with the Desktop and Server alternatives, respectively.

PAGE _ 4 2. SYSTEM CONFIGURATION The steps we need to perform to setup the system that should be backed up are as follows: 1) Log in to the machine that you want to backup. This could be your local computer or a VM running in the Cloud. For instructions on how to log in to a Cloud&Heat VM, please see A Short Introduction to Cloud Compute. 2) Make sure the system is up-to-date: sudo apt-get update sudo apt-get -y upgrade 3) In order to get the newest version of Duplicity, we now add an external repository. sudo add-apt-repository -y ppa:duplicity-team/ppa 4) On Ubuntu 12.04 we also need to execute sudo add-apt-repository -y cloud-archive:havana Note: On Ubuntu you can find out which version you have by executing the following command: lsb_ release -a 5) Then we install the necessary programs: sudo apt-get update sudo apt-get install -y duplicity python-swiftclient anacron 6) Verify that the correct version of Duplicity was installed - at least 0.6.22 is required. duplicity --version

PAGE _ 5 3. CREATE BACKUP SCRIPT We will now create the backup script itself. In this example we name the file backup_home.py, assuming we want to backup the home directories located in /home. 1) Create a directory for the backup script: sudo mkdir -p /usr/local/bin 2) Download the backup script template from the Cloud&Heat Dashboard under Access & Security API Access Download Duplicity Script. See A Short Introduction to Cloud Compute for instructions on how to log in to the Cloud&Heat Dashboard. Save the template as /usr/local/bin/backup _ home.py. 3) Modify the backup script template by setting the values for all variables starting and ending with @@. The values for all these variables should be chosen according to the following guidelines: @@DASHBOARD _ PASSWORD@@: This the password used to log in to the Cloud&Heat Dashboard. Warning: If the password contains the character, it has to be preceded by a backslash (\). @@PASSWORD _ BACKUP@@: Password used to symmetrically encrypt the backup. Warning: If the password contains the character, it has to be preceded by a backslash (\). @@CONTAINER _ NAME@@: The name of the container in which the backup should be stored in the Cloud. The name can only contain the characters a-z, A-Z, 0-9 or -. The container may already exist and will be accessible under the Containers tab in the Cloud&Heat Dashboard. See A Short Introduction to Cloud Object Storage for instructions on how to access it. @@BACKUP _ DIRECTORY@@: Path of the directory to be backed up, e.g., /home. @@BACKUP _ EXCEPTIONS@@: A list of absolute paths of directories within @@BACKUP _ DIRECTORY@@ that should not be backed up. Multiple entries are possible and given in a (possibly empty) list. For example, if the directories @@ BACKUP _ DIRECTORY@@/paul and @@BACKUP _ DIRECTORY@@/anja/Downloads should be excluded from the backup, the variable @@BACKUP _ EXCEPTIONS@@ in the backup script, should be replaced by the following: [ /home/paul/, /home/anja/downloads ]

PAGE _ 6 4) Finally the access should be limited to the root user: sudo chown root:root /usr/local/bin/backup _home.py sudo chmod 700 /usr/local/bin/backup_ home.py 5) To check that the script works one can now run it using: sudo /usr/local/bin/backup _ home.py It should exit without errors. To verify that the backup was stored in the Cloud Object Storage, log in to the Cloud&Heat Dashboard (see A Short Introduction to Cloud Compute for instructions) and go to the Containers tab in the side bar on the left. Here you should see a container with the name you chose (the @@CONTAINER _ NAME@@ from Section 3) and if you click on its name you should see the backup as its content.

PAGE _ 7 4. SETUP PERIODIC BACKUPS To automatically perform the backup on a regular basis, we recommend using the program anacron. It is already installed, so all we need to do is the following: Create a symbolic link with the following command: sudo ln -s /usr/local/bin/backup _ home.py /etc/cron.daily/backup_ home Note that the name of the link in /etc/cron.daily cannot contain the. character, and thus we call it backup _ home instead of backup _ home.py. Apart for the directory cron.daily (used for daily backups) the directories cron.hourly, cron.monthly and cron.weekly also exist. See the man page for anacron for more information. Note: The files in the cron directories must have names that only consist of the following characters: Capital and lower case letters (A-Za-z), digits (0-9), underscores (_) and dashes (-). Otherwise they will not be executed.

PAGE _ 8 5. RESTORE FILES To restore the backup, the following command can be used (the values to use for the variables are described below): SWIFT _ USERNAME= OS _ PROJECT _ NAME:OS _ USERNAME \ SWIFT _ AUTHURL= OS _ AUTH _ URL \ SWIFT _ AUTHVERSION=2 \ SWIFT _ PASSWORD= @@CLOUDANDHEAT _ DASHBOARD _ PASSWORD@@ \ duplicity swift://@@container _ NAME@@ @@TARGET _ DIRECTORY@@ The @@ variables, must all be set to the same values as they had in the backup script that performed the backup (see Section 3). @@TARGET _ DIRECTORY@@ should be the name of the directory where the backup should be restored. Directories that were excluded when performing the backup will not be created. To find the values for variables starting with OS_, download the RC file from the Cloud&Heat Dashboard under Access & Security API Access Download OpenStack RC File. After executing the command you will be asked for a passphrase. This is the @@PASSWORD _ BACKUP@@ that was used in the backup script.