New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

data-exporter

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-exporter

  • 1.3.7
  • Rubygems
  • Socket score

Version published
Maintainers
3
Created
Source

DataExporter

Use to export and import MySQL databases to S3.

To export a MySQL database:

  1. Add gem to Gemfile
  2. Create a YAML or ERB configuration that data-exporter can read:
export_dir: '/tmp'
backup_dir: '/backups'
backup_key: 'config/backup_key' # openssl encryption key file
mysql:
  adapter: 'mysql2'
  host: 'localhost'
  database: 'centurion_development'
  username: 'root'
  password: ''
s3:
  access_key_id: 'ACCESS_KEY_ID'
  secret_access_key: 'SECRET_ACESS_KEY'
  bucket_name: 'socialcast_backups'
  prefix: 'centurion_development'
  1. Execute:
bundle exec data-exporter export -f etc/data_exporter.yml --csv

To import a MySQL database as a directory of CSV files:

bundle exec data-exporter unpack -f etc/data_exporter.yml --csv

To import a MySQL database backup via --sftp:

bundle exec data-exporter unpack -f etc/data_exporter.yml --csv --sftp

FAQs

Package last updated on 17 Jun 2015

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