Tuesday, March 17, 2015

mysqldump: ambiguous option '--all' (all-databases, allow-keywords) fsbackup

Есть такая хорошая штука, как MySQL-Maint
при бэкапе mysql базы данных получаем ошибку

mysqldump: ambiguous option '--all' (all-databases, allow-keywords)

открываем скрипт и удаляем ключ --all

if [ "_$backup_method" = "_full" ]; then
    echo "Creating full backup of all MySQL databases."
    ${backup_progdump_path}mysqldump --all --add-drop-table --all-databases --force --no-data $extra_mysqldump_flag --password=$backup_mysqlpassword --user=$backup_mysqluser > $backup_path/$backup_name-struct-mysql
    ${backup_progdump_path}mysqldump --all --all-databases  --add-drop-table --force $extra_mysqldump_flag --password=$backup_mysqlpassword --user=$backup_mysqluser |gzip > $backup_path/$backup_name-mysql.gz
    exit
fi


No comments:

Post a Comment

grub2-install: error: disk `mduuid/e54081d398c6d57b4d67436f6d032162' not found

After raid 1 disk replacement faced with this issue # grub2-install /dev/sdb Installing for i386-pc platform. grub2-install: error: disk `md...