Something like this will create an sql+TGZ copy of the entire DB in the home subdir of the user that runs it. Obviously that user needs to have permission to access it
u="root";
p="YOUR_MySQL_root_PassW0rD";
BUfile="ERPNext_BU"
DBname="_9920798c4fa8eea4"; # based on the line above `Table '_9920798c4fa8eea4.tabSingles' doesn't exist`
buDate=`date +%Y%m%d-%H%M%S`;
#Create a backup from the local machine
mysqldump -u$u -p$p -B $DBname > $HOME/$buDate-$BUfile-$DBname.sql;
# Compress the backup
tar -cvzf $HOME/$buDate-$BUfile-$DBname.DB.tgz $HOME/$buDate-$BUfile-$DBname.sql;
# rm -f $HOME/$buDate-$BUfile-$DBname.sql; # [optional - uncomment if reqd] remove the local .SQL file (since it is already zipped)