# Saving the terminal output

**URL:** <https://forums.percona.com/t/saving-the-terminal-output/7308>\
**Category:** Percona XtraBackup\
**Created:** [November 25, 2019, 4:37am UTC](https://forums.percona.com/t/saving-the-terminal-output/7308 "2019-11-25T04:37:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LageT](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@LageT](https://forums.percona.com/u/LageT)\
**Post date:** [November 25, 2019, 4:37am UTC](https://forums.percona.com/t/saving-the-terminal-output/7308/1 "2019-11-25T04:37:11Z")

</div>

Hello,

I’m testing Percona Xtrabackup since a few days and found out that it is not possible to save the output from the backup command (“xtrabackup --backup”) into a file in the “normal” way. I tried to save the output with redirection from a script (which calls xtrabackup with specific target-dir) to a file in the same directory (xtrabackup --backup --targetdir=DIR \>\> DIR/terminalOut.log) but the created file is always empty. The backup itself is working correctly as far as i know.  
Is there any option to do so?  
(We have to do so as it is mandatory in our guidelines)

Thanks for help!

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [November 25, 2019, 4:40am UTC](https://forums.percona.com/t/saving-the-terminal-output/7308/2 "2019-11-25T04:40:49Z")

</div>

Can I just check that this doesn’t help in your case please? [URL][Percona XtraBackup](https://www.percona.com/doc/percona-xtrabackup/2.1/xtrabackup_bin/scripting_backups_xbk.html%5B/URL%5D)
