# Tables locked while incrementel backup

**URL:** <https://forums.percona.com/t/tables-locked-while-incrementel-backup/4067>\
**Category:** Percona XtraBackup\
**Created:** [February 23, 2015, 11:04am UTC](https://forums.percona.com/t/tables-locked-while-incrementel-backup/4067 "2015-02-23T11:04:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugchric](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@hugchric](https://forums.percona.com/u/hugchric)\
**Post date:** [February 23, 2015, 11:04am UTC](https://forums.percona.com/t/tables-locked-while-incrementel-backup/4067/1 "2015-02-23T11:04:25Z")

</div>

Hello Community

I want to do an incremental backup between 8 - 18 o’clock every 2 hours.

But the problem is while the backup is running the data will be locked and the user can’t work.  
In the database i have just innodb tables.

I run the script with the followed parameters:  
innobackupex --user=“$MYSQL\_USER” --password=“$MYSQL\_PASS” --no-lock --incremental --incremental-basedir=“$LAST\_BACKUP” "$INCREMENTALS\_DIRECTORY

I have no replication server.

Is it possible to do a hotbackup whitouht a replication server?  
Do execute the backup-script with the correct parameter or some ohter mistakes?

Thanks for your help.  
Christoph

---

<div class="post-metadata">

**Author:** ![mirfan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mirfan/32/16890_2.png) [@mirfan](https://forums.percona.com/u/mirfan)\
**Post date:** [February 25, 2015, 3:50pm UTC](https://forums.percona.com/t/tables-locked-while-incrementel-backup/4067/2 "2015-02-25T15:50:06Z")

</div>

[==no=lock](http://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/innobackupex_option_reference.html#cmdoption-innobackupex--no-lock) option will disable table lock with FTWRL for InnoDB tables only. As you said, you only have InnoDB tables so lock shouldn’t taken place. Are you running any DDL during backup run ? How do you identified that data is locked ? Can you please share “SHOW FULL PROCESSLIST\G” & “SHOW ENGINE INNODB STATUS\G” output when tables are locked during backup run ?

---

<div class="post-metadata">

**Author:** ![hugchric](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@hugchric](https://forums.percona.com/u/hugchric)\
**Post date:** [March 6, 2015, 9:28am UTC](https://forums.percona.com/t/tables-locked-while-incrementel-backup/4067/3 "2015-03-06T09:28:21Z")

</div>

Hey Mirfan

While the backup is running there are’t running any DDL statments. Just select, insert and update.

My impression is, that at the second incremental backup the tables are locked because the UI from the application don’t get any response.
