Revision 13187
Added by Aaron Marcuse-Kubitza over 10 years ago
db.sh | ||
---|---|---|
251 | 251 |
local from="${from:-/var/lib/mysql}"; local to="${to:-$from.bak}" |
252 | 252 |
|
253 | 253 |
mysql_ctl stop |
254 |
local_dir="$from" remote_url="$to" sudo upload |
|
254 |
local_dir="$from" remote_url="$to" try sudo upload
|
|
255 | 255 |
mysql_ctl start |
256 |
rethrow |
|
256 | 257 |
} |
257 | 258 |
|
258 | 259 |
|
Also available in: Unified diff
bugfix: lib/sh/db.sh: mysql_snapshot(): need to run `mysql_ctl start` even if there is an error