Giter VIP home page Giter VIP logo

s3db-backup's People

Contributors

mmarschall avatar shorrockin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

s3db-backup's Issues

Refactor code base from a messy script to tested classes

s3db-backup <= 0.6.4 is basically a set of ruby scripts with lots of duplication. Even worse, it does not have a single test. This makes changing the code very hard and dangerous.

s3db-backup should be fully tested with rspec and should be separated into maintainable ruby classes to simplify further development.

Cleanup anonymization

It should not necessarily run with every load and it should have a proper hook instead of living in S3DbBackup class.

'load' does not use host from database.yml

s3db:latest:load always tries to load the mysql dump into a database on localhost.

It does not use the host given in database.yml

s3db should use the host from database.yml if defined, otherwise default to localhost

Issue in my production environment

DB backup functionality is working fine in staging environment. But when im trying to invoke the rake task to upload the db to s3...git stuck by getting the following error..

"mysqldump: Got error: 1045: Access denied for user 'dbname'@'server private ip address' (using password: YES) when trying to connect"

Im wondering why it would take server instead of host address from database.yml

I have also declared config variables in application.rb,
ENV['S3DB_BUCKET'] = "XXXXXXXX"
ENV['S3DB_DATABASE_CONFIG'] = "production"

I would appreciate if you can assist me in fixing this issue.

Thanks.
Amit

Generator does not work in Rails 3

While the backup and restore run nicely under Rails 3, the generator, which helps to setup the config files, does not yet run under Rails 3.

load can't run twice without touching the downloaded file

In 0.6.4 the load task is unzipping the dump. Because of that you can't run load twice without either fetching the dump again or zipping it manually before running load.

The dump should be unzipped by fetch instead. That way we can run load multiple times on the same dump without manual intervention.

Make S3 provider configurable

Right now s3db-backup is hard wired to right_aws gem. It should be possible to use other providers, especially fog.

Regression: rails_env setter not available anymore

I've removed the rails_env attribute from the S3DbBackup class.

If you want to change the database to load into, there is no way to do so right now. We need a way to be able to configure the target database.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.