Skip to content

ntorresj/load_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Download & Import Database from S3.

How to use?

  • Clone the repo YOUR_PATH
  • cd YOUR_PATH/load_db
  • Run ./load_db.rb backupName

What does?

  • Download a DB from a specific backupName
  • If the file exists, the script ask you if you want to donwload again or load the backup donwloaded
  • If you forget type the backupName the script ask you while is running
  • When it connect with the server will show all the backups available, so you only have to choose one
  • Create a DB using the backupName name backupName, you can edit database's name too
ie. 
$db = "{client}" -> backupName
$db = "{client}_anyText" -> backupName_anyText
$db = "anyText" -> anyText
  • If the DB exists will be removed

Config

  • cp settings.rb.default settings.rb
  • Use the settings.rb to set the folder backups download and set MySQL credentials

### Example. ###

Download and create DB

./load_db.rb backupName

About

Download & Import Database from S3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages