# Issue applying logs to full backup

**URL:** <https://forums.percona.com/t/issue-applying-logs-to-full-backup/4377>\
**Category:** Percona XtraBackup\
**Created:** [August 31, 2015, 7:33pm UTC](https://forums.percona.com/t/issue-applying-logs-to-full-backup/4377 "2015-08-31T19:33:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjfaga](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mjfaga](https://forums.percona.com/u/mjfaga)\
**Post date:** [August 31, 2015, 7:33pm UTC](https://forums.percona.com/t/issue-applying-logs-to-full-backup/4377/1 "2015-08-31T19:33:06Z")

</div>

Hi - I’m trying to apply the logs to a full back up I just took. However, I’m receiving the following error:

[B][I]

```auto

innobackupex: got a fatal error with the following stacktrace: at /usr/bin/innobackupex line 3910
main::check_args() called at /usr/bin/innobackupex line 1531
innobackupex: Error: Too many command line arguments

```

[/I][/B]

To take my backup, I ran the following command:  
[B][I]

```auto
innobackupex -user=root --no-timestamp /backup/prod-db/percona/2015-08-30

```

[/I][/B]

After the completed, successfully, I attempted to apply the logs to give myself a stable backup to restore from:  
[B][I]

```auto
[/I][/B][I][B]innobackupex —apply-log /backup/prod-db/percona/2015-08-30[/B][/I][B][I]

```

[/I][/B]

Running this commend resulted in the error message above.

Additional information:  
Using server version 5.5.41-0+wheezy1  
xtrabackup version 2.2.12 based on MySQL server 5.6.24 Linux (x86\_64) (revision id: 8726828)

Any help is appreciated!

Thanks,  
Mark

---

<div class="post-metadata">

**Author:** ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)\
**Post date:** [August 31, 2015, 8:16pm UTC](https://forums.percona.com/t/issue-applying-logs-to-full-backup/4377/2 "2015-08-31T20:16:43Z")

</div>

Hi mjfaga;

Are you by chance copying your commands from somewhere? Your apply-log command has one of Windows’ lovely “em dashes” that gets created from two hyphens (–). If you delete that and put back in the two hyphens, like --apply-log, it should work.

-Scott

---

<div class="post-metadata">

**Author:** ![mjfaga](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mjfaga](https://forums.percona.com/u/mjfaga)\
**Post date:** [September 1, 2015, 7:52am UTC](https://forums.percona.com/t/issue-applying-logs-to-full-backup/4377/3 "2015-09-01T07:52:35Z")

</div>

Wow - sorry about that… I was copying from my Apple notes - didn’t even notice the missing dash. Thanks, and sorry for the trouble!
