Git Product home page Git Product logo

encrypted_backup's Introduction

Encrypted Backup

Table of Contents

  1. Description
  2. Setup
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.

Description

The encrypted_backup module provides a simple way to securely back up Linux machines and ship backups elswhere. It encrypts data using GPG and transfers data via SFTP, making the backups jobs secure end-to-end.

This module relies on many fundamental *nix tools, such as cron, tar, and SSH, eliminating complexity and making this module lightweight and portable.

Setup

Prior to using this module, you will need to set up a GPG keychain on the backup server to properly encrypt data.

Note: encrypted_backup manages backup jobs with cron. As a result, we strongly recommend that you purge unmanaged cron jobs with Puppet. If you don't purge unmanaged cron jobs, older backup jobs will persist even after removing Puppet code.

You can purge unmanaged cron jobs by including something like the following in your Puppet code:

resources { 'cron':
  purge => true,
}

Usage

You can back up a given directory with the backup_profile defined type:

encrypted_backup::backup_profile { 'nginx':
  backup_dir    => '/etc/nginx',
  gpg_recipient => '[email protected]',
  key_auth      => '/var/lib/backup/.ssh/id_rsa',
  server_url    => '[email protected]:nginx/',
}

The backup_profile_libvirt defined type allows you to take full-disk backups of a virtual machine from a hypervisor.

encrypted_backup::backup_profile_libvirt { 'hypervisor':
  gpg_recipient => '[email protected]',
  key_auth      => '/var/lib/backup/.ssh/id_rsa',
  server_url    => '[email protected]:hypervisor/',
  vm_list       => [ 'web.example.com', 'db.example.com' ],
}

Limitations

This module has only been tested on Ubuntu 16.04 machines.

encrypted_backup's People

Contributors

jonnytdevops avatar mhashizume avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.