Using Mysql 5.7
how to perform online backup using shell script ?
below are conditions :
- without stopping MySQL want to perform backup
- if any user perform update at the time of backup then what happened ?
Using Mysql 5.7
how to perform online backup using shell script ?
below are conditions :
Check the --lock-tables, -l option with mysqldump command.
I believe you just need to set lock-tables to false and you backup script should work without locking table every time before backup.
As far as your second doubt, I believe that the if any user perform update at the time of backup then that record should not be included in the backup.
Reference: https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_lock-tables
EDIT:
MySql 5.7 also has the concept called HOT BACKUP, though I've never used it before you could try if it works for you.
Reference : https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_hot_backup