Git Product home page Git Product logo

openbsd-ansible-s3-backup's Introduction

openbsd-ansible-s3-backup

this is a playbook to set up an automated backup system utilizing AWS S3 as a storage location

What it does:

  • Downloads the dependencies (inotify-tools and awscli)
  • Configures an aws profile to connect to (using already established credentials)
  • Uploads a listener script
    • The listener script runs inotifywait on a directory, when things change it creates an encrypted tarball of the files in the directory
  • Uploads an upload script
    • The upload script uploads all encrypted tarballs in a directory and removes them from the local filesystem
  • Starts listeners and runs them in the background
  • Sets up cron to run at 0300 local time everyday

Getting Started

Simply put, all you should have to do is set the ansible variables in the hosts and the group_vars/host/vars.yml files to the values you want, and then run the playbook.

Notes

  • It is currently set up to run su as the become method, so if you want to use a different method, you'll have to change that.
  • Python 3.6 is used, so make sure that is set up. I have a playbook to set that up as well: openbsd-ansible-init.

openbsd-ansible-s3-backup's People

Contributors

desnudopenguino avatar

Stargazers

Drew Barthel avatar

Watchers

James Cloos avatar  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.