Hello guys I’m trying to display a simple progress bar for the common user to understand easily at the moment I got this:
mysqldump --verbose -uusername -ppassword dbname > dbname$(date +.%d.%m.%y).sql
–verbose gives me a lot of information that I do understand but is there a way to show a progress bar that is much easier to read much like wget does: 0%====>====100% ? or similar to rsyncs –stats?
Well no, because mysqldump does not know how much data it is going to dump, hence it cannot put a percentage on how many was already completed.
You could write your own script that uses mysqldump and imitates a progress bar, updated for example after each database.
Example shell script: