mysqldump: Got errno 32 on write

后端 未结 11 592
心在旅途
心在旅途 2021-01-01 09:03

I used this script for years on my VPS. And it\'s still working.

DBLIST=`mysql -uroot -pROOT_PASSWORD -ANe\"SELECT GROUP_CONCAT(schema_name) FROM information         


        
11条回答
  •  春和景丽
    2021-01-01 09:09

    Faced with the same problem. I do not know why exactly, but if you add the utility PV concluded that all works. Maybe it depends on your shell bash/sh.

    sudo apt-get install pv
    

    PipeViewer it a very usefull utility, it allows you to visualize processes of writing to disk, for example.

    Script for example

    mysqldump ${MYSQLDUMP_OPTIONS} ${DB} | gzip | pv > ${BACKUP_DEST}/${DB}.sql.gz
    

提交回复
热议问题