Method: Myq::Core#dump
- Defined in:
- lib/myq/core.rb
#dump(filepath = "#{@profile['database']}.dump") ⇒ Object
217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/myq/core.rb', line 217 def dump(filepath = "#{@profile['database']}.dump") cmd = " mysqldump \\\n -u \#{@profile['username']}\\\n -h \#{@profile['host']}\\\n -p \#{@profile['database']}\\\n --password='\#{@profile['password']}'\\\n --default-character-set=binary\\\n > \#{filepath}\n EOF\n system(cmd)\nend\n" |