# Issues creating full backup with XtraBackup

**URL:** <https://forums.percona.com/t/issues-creating-full-backup-with-xtrabackup/2264>\
**Category:** Percona XtraBackup\
**Created:** [June 28, 2012, 7:48am UTC](https://forums.percona.com/t/issues-creating-full-backup-with-xtrabackup/2264 "2012-06-28T07:48:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbolger0](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dbolger0](https://forums.percona.com/u/dbolger0)\
**Post date:** [June 28, 2012, 7:48am UTC](https://forums.percona.com/t/issues-creating-full-backup-with-xtrabackup/2264/1 "2012-06-28T07:48:43Z")

</div>

I have just installed Percona Xtrabackup on my RHEL5 server and am trying to have it create a full backup from the command line.

From the website ([http://www.percona.com/doc/percona-xtrabackup/howtos/recipes \_xbk\_full.html](http://www.percona.com/doc/percona-xtrabackup/howtos/recipes_xbk_full.html)), the command to create a backup is “xtrabackup --backup --target-dir=/data/backups/mysql/”

As my database is in a different directory, I’m using the command “xtrabackup --backup --target-dir=/data/backups/mysql/ --datadir=/opt/easyCMDB/amp/mysql/data/”

Is this correct? For some reason it is giving the below error:

# ================================================ xtrabackup version 2.0.0 for Percona Server 5.1.59 pc-linux-gnu (i686) (revision id: 417) xtrabackup: uses posix\_fadvise(). xtrabackup: cd to /opt/easyCMDB/amp/mysql/data/ xtrabackup: Target instance is assumed as followings. xtrabackup: innodb\_data\_home\_dir = ./ xtrabackup: innodb\_data\_file\_path = ibdata1:10M:autoextend xtrabackup: innodb\_log\_group\_home\_dir = ./ xtrabackup: innodb\_log\_files\_in\_group = 2 xtrabackup: innodb\_log\_file\_size = 5242880 InnoDB: Error: log file ./ib\_logfile0 is of different size 0 67108864 bytes InnoDB: than specified in the .cnf file 0 5242880 bytes!

The xtrabackup help page says you can define the log file size using “xtrabackup --backup --target-dir=/data/backups/mysql/ --datadir=/opt/easyCMDB/amp/mysql/data/ --innodb\_log\_file\_size=67108864”, so I tried that but it just gave me another error:

# ================================================ xtrabackup version 2.0.0 for Percona Server 5.1.59 pc-linux-gnu (i686) (revision id: 417) xtrabackup: uses posix\_fadvise(). xtrabackup: cd to /opt/easyCMDB/amp/mysql/data/ xtrabackup: Target instance is assumed as followings. xtrabackup: innodb\_data\_home\_dir = ./ xtrabackup: innodb\_data\_file\_path = ibdata1:10M:autoextend xtrabackup: innodb\_log\_group\_home\_dir = ./ xtrabackup: innodb\_log\_files\_in\_group = 2 xtrabackup: innodb\_log\_file\_size = 67108864 120627 16:40:07 InnoDB: Warning: allocated tablespace 1820, old maximum was 9 xtrabackup: Can’t create/write to file ‘/data/backups/mysql/xtrabackup\_logfile’ (Errcode: 17) xtrabackup: error: cannot open /data/backups/mysql/xtrabackup\_logfile (errno: 17)

The file ‘/data/backups/mysql/xtrabackup\_logfile’ is chmod 777, so it should be writable and readable so I’m not sure what’s going on there.

Can anybody suggest what might be happening? If any further information is required I’ll supply it is possible.

Thanks!

---

<div class="post-metadata">

**Author:** ![dbolger0](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dbolger0](https://forums.percona.com/u/dbolger0)\
**Post date:** [July 3, 2012, 5:53am UTC](https://forums.percona.com/t/issues-creating-full-backup-with-xtrabackup/2264/2 "2012-07-03T05:53:55Z")

</div>

Can anybody shed any light on this?
