We have an ubuntu server having mysql installed. There is one DB whose size is 30 GB in production. This DB contains tables, views, and store procedures. We use MySQL script to execute the backup on the server. It works fine with the DB size of around 2-5 GB but when we run the same script on a 30 GB DB server it time out, sometimes it doesn't contain the store procedure in the DB backup. We try various updates in the script but didn't work.
Below is some error we received while taking its backup.