Project

General

Profile

« Previous | Next » 

Revision 13251

fix: lib/sh/db.sh: mysql_snapshot(): need to create dest dir if doesn't exist

View differences:

db.sh
253 253
{
254 254
	echo_func; kw_params from to
255 255
	local from="${from:-/var/lib/mysql}"; local to="${to:-$from.bak}"
256
	sudo mkdir "$to"
256 257
	
257 258
	mysql_ctl stop
258 259
	prep_try; local_dir="$from" remote_url="$to" "try" sudo upload

Also available in: Unified diff