Install and configure astrails-safe
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead, 11 commits behind railsmachine:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



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:

    :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
    :key: # public key to encrypt with. quick instructions in the astrails readme[]
    :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
      - 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
        - /srv/myapp/shared/log
        - /srv/myapp/system
    - :name: static_site
      :files: /srv/static
      :exclude: /srv/static/garbage


  • script/plugin install git://

  • Configure settings if needed

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

    recipe :astrails_safe