Small fixes
This commit is contained in:
@@ -304,11 +304,11 @@ step_50() {
|
||||
local buTarget="$2"
|
||||
if [ -z $2 ] ; then
|
||||
echoerr " [W] No target directory provided. Using home of current user"
|
||||
buTarget="~/"
|
||||
buTarget="~"
|
||||
fi
|
||||
|
||||
echo " [I] Dumping database $dbName to $(realpath $buTarget)"
|
||||
exep "mysqldump --single-transaction $dbName > \"${buTarget}/${dbName}_backup_\`date +%Y%m%d-%H%M%S\`.sql\""
|
||||
exep "mysqldump --single-transaction $dbName > \"$(realpath $buTarget)/${dbName}_backup_$(date +%Y%m%d-%H%M%S).sql\""
|
||||
endReturn -o $? "Error creating $dbName backup"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user