0.0
No commit activity in last 3 years
No release in over 3 years
Dump rails db to YAML format, and submit to AmazonS3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.61.0
>= 4.0.0
 Project Readme

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