Skip to Navigation
Muffinlabs!
Home
›
Remote MySQL Dump into local DB
#!/bin/bash
DB
=
$1
shift
TABLES
=
$*
ssh
-C
colin
@
db2
"mysqldump -u root --password='heLL&*()0' --skip-lock-tables
$DB
$TABLES
> /tmp/load.sql && gzip -c /tmp/load.sql"
>
/
tmp
/
load.sql.gz
&&
gunzip
-c
/
tmp
/
load.sql.gz
|
mysql
-u
root
$DB
Primary links
home
photos
projects
resume
contact
Search
Search this site:
Flickr recent photos
User login
Log in using OpenID:
What is OpenID?
Username or e-mail:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags in Tags
Code
Food
fun
funny
Games
Garden
General
Living
music
politics
science
video
more tags