¶ ↑
Engine Yard Database BackupEngine Yard Database Backup is used to backup the latest database backup from Amazon’s S3 service. This gem downloads the latest file in the bucket you specify in your AWS S3 account. This backup utility is to make sure there is a recent backup of the database incase Amazon’s S3 service goes down and you need access to your data.
¶ ↑
Setting up and using the Engine Yard Database Backup gem-
gem install ey_db_backup
-
Create the directory
config
within the local directory you are running the gem in. -
Create a YAML file
config.yml
structured as below. The database list items should start with a “-” not a “*”, some sites markup translate “-” into “*”. Be aware that if your YAML file database list entries start with “*” and not “-” if may not work.access_key_id: "put your access key id here" secret_access_key: "put your secret access key here" bucket_name: "put the bucket name here" export_path: "put the location you want to export the file to here (e.g. documents/db_exports/)" environment: "put which environment you want backed up in Engine Yard (e.g. Production)" databases: - "list all databases here (e.g. apple)" - "(e.g. orange)"
-
Simply run
ey_db_backup run_export
to download the latest file in the bucket you specified to the directory you specified.
¶ ↑
Configuring Engine Yard Databse Backup for Development-
Fork this project.
-
Create the config file as described above.
-
Code away!
¶ ↑
Contributing to ey_db_export-
Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet
-
Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it
-
Fork the project
-
Start a feature/bugfix branch
-
Commit and push until you are happy with your contribution
-
Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
¶ ↑
CopyrightCopyright © 2011 Brett Chalupa. See LICENSE.txt for further details.