Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dev_dump

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev_dump

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

DevDump

Provides Rake tasks to dump a database to an encrypted file on a remote server, download the file, and restore a local DB from the file.

Installation

Add this line to your application's Gemfile:

gem 'dev_dump'

And then execute:

$ bundle

This depends on gpg. Install it on OS X with brew install gpg.

Usage

rake dev_dump:dump # run from the app root on production. dump postgres DB to a file. supply a passphrase for gpg encryption.
rake dev_dump:download_file[/path/to/file/on/prod] # run from developer machine, with a file path in mind
rake dev_dump:load[/path/to/local/file] # run after the dump file is downloaded

Configuration

Configuration can be provided with a Rails initializer as a configuration file, following this approach.

DevDump.configure do |config|
  config.backups_path = "/tmp/some_dir"
  config.ssh_user = "user"
  config.ssh_host = "host.server.com"
end

FAQs

Package last updated on 26 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc