Revision 13252
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/db.sh | ||
---|---|---|
249 | 249 |
sudo service mysql "$@" # ignore errors if not running |
250 | 250 |
} |
251 | 251 |
|
252 |
mysql_snapshot() # usage: live=1 [from=...] [to=...] mysql_snapshot
|
|
252 |
mysql_snapshot() # usage: [live=] [from=...] [to=...] mysql_snapshot
|
|
253 | 253 |
{ |
254 |
echo_func; kw_params from to |
|
254 |
echo_func; kw_params from to; local_export live="${live-1}"
|
|
255 | 255 |
local from="${from:-/var/lib/mysql}"; local to="${to:-$from.bak}" |
256 | 256 |
sudo mkdir "$to" |
257 | 257 |
|
Also available in: Unified diff
lib/sh/db.sh: mysql_snapshot(): use live mode as the default