Dump rails db to YAML format, and submit to AmazonS3
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE
MIT-LICENSE
README.md
Rakefile
init.rb
rails_dump2_s3.gemspec

README.md

RailsDump2S3

Gem Version

Dump rails db to YAML format, and submit to AmazonS3.

Description

Execute "db:data:dump" (it depends on 'YAML_DB' gem). and upload output file to AmazonS3.

(2015.6.2) it still not support to AWS-SDKv2, sorry.

Usage

export AWS_ACCESS_KEY="Your aws acccess key"
export AWS_SECRET_ACCESS_KEY="Your aws secret acccess key"

rake rails_dump2_s3:dump
  • adding prefix to file
export DUMP2S3_PREFIX=major
bin/rake rails_dump2_s3:dump
 => adding: db/base-development-major-2015-10-05-183924.zip

Install

gem install "rails_dump2_s3"

Don't export specific table

if you don't export 'sessions' table.. Just do this.

bin/rake rails_dump2_s3:dump EXCLUDE_TABLES="sessions"

Licence

MIT

Author

jacoyutorius