Giter VIP home page Giter VIP logo

moonshine_astrails_safe's Introduction

Moonshine_AstrailsSafe

A plugin for Moonshine

A plugin for installing and managing astrails-safe, a tool for backing up files and databases locally and to s3.

There are lots of options that can be set. If no options are given, the default behavior is to backup the application’s @deploy_to@ directory to /backup every night at midnight.

Here are some other ways to configure the plugin in moonshine.yml:

:astrails_safe:
  :local:
    :path: /home/user/bak # default is /home/rails/backup/:kind (mysqldump, archive)
  :cron:  # default is to run every night at midnight
    :monthday: */5 # backup every five days at midnight. can also use minute,hour,month,weekday
  :keep: # number of backups to keep before rotating out.
         # default is to keep them all
    :s3: 12
    :local: 3
  :gpg:
    :key: [email protected] # public key to encrypt with. quick instructions in the astrails readme[http://github.com/astrails/safe]
    :password: sekrit # symmetric encryption with a password instead of a public key
  :mysql: # default is to backup the database from database.yml as root, no password
    :databases:
      - app_db
      - other_db
    :user: backup
    :password: sekrit # can also set host, port, or socket
  :archives # default is to backup the application directory. 
            # to change, specify name, files, and optionally, path(s) to exclude
    - :name: app
      :files: /srv/myapp
      :exclude:
        - /srv/myapp/shared/log
        - /srv/myapp/system
    - :name: static_site
      :files: /srv/static
      :exclude: /srv/static/garbage

Instructions

  • script/plugin install git://github.com/railsmachine/moonshine_astrails_safe.git

  • Configure settings if needed

  • Include the plugin and recipe(s) in your Moonshine manifest

    recipe :astrails_safe
    

moonshine_astrails_safe's People

Contributors

leejones avatar edavis10 avatar sborsje avatar

Stargazers

 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.