public
Description: Install and configure astrails-safe
Homepage:
Clone URL: git://github.com/railsmachine/moonshine_astrails_safe.git
name age message
file README.rdoc Mon Jun 15 14:39:36 -0700 2009 initial commit [roblingle]
directory lib/ Mon Jun 15 14:39:36 -0700 2009 initial commit [roblingle]
directory moonshine/ Mon Jun 15 14:39:36 -0700 2009 initial commit [roblingle]
directory spec/ Mon Jun 15 14:39:36 -0700 2009 initial commit [roblingle]
directory templates/ Fri Sep 11 04:12:46 -0700 2009 * Added support for gpg options (so you can run... [sborsje]
README.rdoc

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:
      :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: user@domain.com # 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/ACCOUNT/moonshine_astrails_safe.git
  • Configure settings if needed
  • Include the plugin and recipe(s) in your Moonshine manifest
      plugin :astrails_safe
      recipe :astrails_safe