Skip to content

Instantly share code, notes, and snippets.

@Winslett
Created August 28, 2011 06:49
Show Gist options
  • Save Winslett/1176330 to your computer and use it in GitHub Desktop.
Save Winslett/1176330 to your computer and use it in GitHub Desktop.
Possible EY Backup Reloading Across Servers
#
# Possible cross-server database restoring of databases by adding the following at line 79 of:
#
# /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/ey_cloud_server-1.4.24/lib/ey_backup/cli.rb
#
# Then, you could run the following:
#
# eybackup -E my_other_environment -D my_local_db_name_if_different --restore 9:mybackedup_database.sql.gz
#
opts.on("-E", "--environment EY_Environment", "Engine Yard Environment.") do |environment|
options[:environment] = environment
end
opts.on("-D", "--database LOCAL_DATABASE", "Explicit local database name.") do |database|
options[:db] = database
end
@Winslett
Copy link
Author

Actually like 77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment