# Removing files

**URL:** <https://forums.percona.com/t/removing-files/2250>\
**Category:** Percona XtraBackup\
**Created:** [June 1, 2012, 12:20pm UTC](https://forums.percona.com/t/removing-files/2250 "2012-06-01T12:20:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HTF1](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@HTF1](https://forums.percona.com/u/HTF1)\
**Post date:** [June 1, 2012, 12:20pm UTC](https://forums.percona.com/t/removing-files/2250/1 "2012-06-01T12:20:37Z")

</div>

Hi,

Is it safe to remove the following files from MySQL data directory after successful backup:

xtrabackup\_binary  
xtrabackup\_binlog\_info  
xtrabackup\_binlog\_pos\_innodb  
xtrabackup\_checkpoints  
xtrabackup\_logfile

Regards

---

<div class="post-metadata">

**Author:** ![martin.arrieta](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/martin.arrieta/32/16888_2.png) [@martin.arrieta](https://forums.percona.com/u/martin.arrieta)\
**Post date:** [June 8, 2012, 12:50pm UTC](https://forums.percona.com/t/removing-files/2250/2 "2012-06-08T12:50:29Z")

</div>

Some of those files are used to restore the backup or to make incremental backups for example.

xtrabackup\_checkpoints will store the LSN range of this backups. It is used for incremental backups…  
xtrabackup\_binlog\_info will contain the the bin log file and position when you made the backup. It will be useful if you want to create slaves from this backup  
xtrabackup\_binlog\_pos\_innodb if the same as xtrabackup\_binlog\_info but only valid if you only have XtraDB of InnoDB tables.  
xtrabackup\_binary xtrabackup used to make the backup.  
xtrabackup\_logfile used to restore your backup.

I don’t understand why you might want to remove those files from a backup… but not… this is not recommended.

Bye

---

<div class="post-metadata">

**Author:** ![HTF1](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@HTF1](https://forums.percona.com/u/HTF1)\
**Post date:** [June 8, 2012, 1:04pm UTC](https://forums.percona.com/t/removing-files/2250/3 "2012-06-08T13:04:57Z")

</div>

Hi,

Thanks for reply.

Basically I’ve restored slave server with Xtrabackup script. I’m not planning to use it any more on these server so I though I’ll clean out these files from MySQL data directory.

Regards
